Don't filter sources for audio-only

pull/3/head
Omar Roth 7 years ago
parent 6f0e2365de
commit 99d299d62a

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

Loading…
Cancel
Save