Don't remove unsupported sources

pull/733/head
Omar Roth 6 years ago
parent be601a7584
commit 791f216a45

@ -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>

Loading…
Cancel
Save