summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/views/watch.ecr9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/views/watch.ecr b/src/views/watch.ecr
index 696ce56f..766dda77 100644
--- a/src/views/watch.ecr
+++ b/src/views/watch.ecr
@@ -103,6 +103,15 @@ function toggle_comments(target) {
body.style.display = '';
}
};
+
+var currentSources = player.currentSources();
+for ( var i = 0; i < currentSources.length; i++ ) {
+ if (player.canPlayType(currentSources[i]["type"].split(";")[0]) === "") {
+ currentSources.splice(i);
+ }
+}
+
+player.src(currentSources);
</script>
<div class="h-box">