Fix supported codecs check in JS player
This commit is contained in:
+2
-2
@@ -215,8 +215,8 @@ class VideoRTC extends HTMLElement {
|
|||||||
|
|
||||||
codecs(type) {
|
codecs(type) {
|
||||||
const test = type === "mse"
|
const test = type === "mse"
|
||||||
? type => MediaSource.isTypeSupported(type)
|
? codec => MediaSource.isTypeSupported(`video/mp4; codecs="${codec}"`)
|
||||||
: type => this.video.canPlayType(type);
|
: codec => this.video.canPlayType(`video/mp4; codecs="${codec}"`);
|
||||||
return this.CODECS.filter(test).join();
|
return this.CODECS.filter(test).join();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user