diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-10-30 08:34:55 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-10-30 08:34:55 -0500 |
| commit | 791f216a4510f3a4f05dd08c4c5f39fd2ba9c2c7 (patch) | |
| tree | a1e00894e8ea6408d648ab344f57d7bcdb76ccfc | |
| parent | be601a7584a1369938812d830bad8c4160dbcbd5 (diff) | |
| download | invidious-791f216a4510f3a4f05dd08c4c5f39fd2ba9c2c7.tar.gz invidious-791f216a4510f3a4f05dd08c4c5f39fd2ba9c2c7.tar.bz2 invidious-791f216a4510f3a4f05dd08c4c5f39fd2ba9c2c7.zip | |
Don't remove unsupported sources
| -rw-r--r-- | src/invidious/views/components/player.ecr | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 8b9e92da..0dbdb05f 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -137,18 +137,6 @@ player.markers({ player.currentTime(<%= params[:video_start] %>); <% 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.playbackRate(<%= params[:speed] %>); </script> |
