Skip to content

Commit

Permalink
Use <audio> tag for audio only
Browse files Browse the repository at this point in the history
  • Loading branch information
omarroth committed Nov 15, 2018
1 parent 6ca7a71 commit e6bc5bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 %>
Expand Down Expand Up @@ -34,7 +34,7 @@
label="<%= caption.name.simpleText %>">
<% end %>
<% end %>
</video>
</<% if params[:listen]%>audio<% else %>video<% end %>>

<script>
var options = {
Expand Down

0 comments on commit e6bc5bb

Please sign in to comment.