Don't filter sources for audio-only

This commit is contained in:
Omar Roth 2018-04-11 17:24:50 -05:00
parent 6f0e2365de
commit 99d299d62a

View file

@ -103,6 +103,7 @@ function toggle_comments(target) {
}
};
<% if !listen %>
var currentSources = player.currentSources();
for ( var i = 0; i < currentSources.length; i++ ) {
if (player.canPlayType(currentSources[i]["type"].split(";")[0]) === "") {
@ -112,6 +113,7 @@ for ( var i = 0; i < currentSources.length; i++ ) {
}
player.src(currentSources);
<% end %>
</script>
<div class="h-box">