diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-11-15 17:52:53 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-11-15 17:52:53 -0600 |
| commit | e6bc5bb35dbaa3dc268c272fe3f9d0d62502c1c6 (patch) | |
| tree | 7b29e711acaa8eb2b4907a93f6a57d1b707a8df3 | |
| parent | 6ca7a71db9a6219a93c7e126087b2189626144ce (diff) | |
| download | invidious-e6bc5bb35dbaa3dc268c272fe3f9d0d62502c1c6.tar.gz invidious-e6bc5bb35dbaa3dc268c272fe3f9d0d62502c1c6.tar.bz2 invidious-e6bc5bb35dbaa3dc268c272fe3f9d0d62502c1c6.zip | |
Use <audio> tag for audio only
| -rw-r--r-- | src/invidious/views/components/player.ecr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 51f7182a..76fb3dc1 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -1,4 +1,4 @@ -<video style="width:100%" playsinline poster="<%= thumbnail %>" title="<%= HTML.escape(video.title) %>" +<<% if params[:listen]%>audio<% else %>video<% end %> style="width:100%" playsinline poster="<%= thumbnail %>" title="<%= HTML.escape(video.title) %>" id="player" class="video-js" onmouseenter='this["title"]=""' <% if params[:autoplay] %>autoplay<% end %> @@ -34,7 +34,7 @@ label="<%= caption.name.simpleText %>"> <% end %> <% end %> -</video> +</<% if params[:listen]%>audio<% else %>video<% end %>> <script> var options = { |
