mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Don't remove unsupported sources
This commit is contained in:
parent
be601a7584
commit
791f216a45
1 changed files with 0 additions and 12 deletions
|
@ -137,18 +137,6 @@ player.markers({
|
||||||
player.currentTime(<%= params[:video_start] %>);
|
player.currentTime(<%= params[:video_start] %>);
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if !params[:listen] %>
|
|
||||||
var currentSources = player.currentSources();
|
|
||||||
for (var i = 0; i < currentSources.length; i++) {
|
|
||||||
if (player.canPlayType(currentSources[i]["type"].split(";")[0]) === "") {
|
|
||||||
currentSources.splice(i);
|
|
||||||
i--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
player.src(currentSources);
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
player.volume(<%= params[:volume].to_f / 100 %>);
|
player.volume(<%= params[:volume].to_f / 100 %>);
|
||||||
player.playbackRate(<%= params[:speed] %>);
|
player.playbackRate(<%= params[:speed] %>);
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue