diff --git a/www/video-rtc.js b/www/video-rtc.js index 368530ce..01369af8 100644 --- a/www/video-rtc.js +++ b/www/video-rtc.js @@ -601,7 +601,7 @@ export class VideoRTC extends HTMLElement { this.play(); }; - this.send({type: 'hls', value: this.codecs(this.video.canPlayType)}); + this.send({type: 'hls', value: this.codecs(type => this.video.canPlayType(type))}); } onmp4() {