summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-11-15 17:52:53 -0600
committerOmar Roth <omarroth@hotmail.com>2018-11-15 17:52:53 -0600
commite6bc5bb35dbaa3dc268c272fe3f9d0d62502c1c6 (patch)
tree7b29e711acaa8eb2b4907a93f6a57d1b707a8df3
parent6ca7a71db9a6219a93c7e126087b2189626144ce (diff)
downloadinvidious-e6bc5bb35dbaa3dc268c272fe3f9d0d62502c1c6.tar.gz
invidious-e6bc5bb35dbaa3dc268c272fe3f9d0d62502c1c6.tar.bz2
invidious-e6bc5bb35dbaa3dc268c272fe3f9d0d62502c1c6.zip
Use <audio> tag for audio only
-rw-r--r--src/invidious/views/components/player.ecr4
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 = {