summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 = {
1300d6a47a27aa2cd46b44955eae&follow=1'>Update Norwegian Bokmål translationAllan Nordhøy 2020-01-14Fix channel redirectOmar Roth 2020-01-12Improve Dutch localeRemi Reuvekamp 2020-01-08Add base-devel to Arch dependenciesOmar Roth 2020-01-08Minor refactorOmar Roth 2020-01-08Fix channel playlists for genre channelsOmar Roth 2020-01-08Bump video.jsOmar Roth 2019-12-14Bump dependenciesOmar Roth 2019-12-14Fix the french translationfrajibe 2019-12-05Minor refactor for channel playlistsOmar Roth 2019-12-05Add better error message for fetch_channelOmar Roth 2019-12-05Add support for pt-BROmar Roth