From f949a278daaf31e3287db263cd396c909492ccfb Mon Sep 17 00:00:00 2001 From: Alex X Date: Sat, 14 Oct 2023 11:40:49 +0300 Subject: [PATCH] Fix HLS JS error on latest iOS --- www/video-rtc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {