Fix issue with webm and opus video
authorChocobozzz <me@florianbigard.com>
Sun, 18 Feb 2018 08:47:13 +0000 (09:47 +0100)
committerChocobozzz <me@florianbigard.com>
Sun, 18 Feb 2018 08:48:07 +0000 (09:48 +0100)
client/src/assets/player/video-renderer.ts

index 3cd98242d965727a1757f9c5828bcd97a4d9e57d..bda40b11d0ceaac7dda380c1bc860679e1915273 100644 (file)
@@ -104,7 +104,7 @@ function getCodec (name: string) {
     '.mkv': 'video/webm; codecs="avc1.640029, mp4a.40.5"',
     '.mp3': 'audio/mpeg',
     '.mp4': 'video/mp4; codecs="avc1.640029, mp4a.40.5"',
-    '.webm': 'video/webm; codecs="vorbis, vp8"'
+    '.webm': 'video/webm; codecs="opus, vorbis, vp8"'
   }[ext]
 }