From 1f94b7f6358f2220d90ba2b00de8ffe897f33621 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 12 Sep 2025 23:09:07 +0800 Subject: [PATCH] bugfix --- bricks/videoplayer.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/bricks/videoplayer.js b/bricks/videoplayer.js index aeb159f..6bf0f1f 100644 --- a/bricks/videoplayer.js +++ b/bricks/videoplayer.js @@ -44,7 +44,6 @@ bricks.VideoPlayer = class extends bricks.VBox { ` this.video = this.dom_element.querySelector('.video-element'); - this.video.textTracks[0].mode = 'hidden'; this.controls = this.dom_element.querySelector('.controls'); this.hls = null; @@ -97,7 +96,6 @@ bricks.VideoPlayer = class extends bricks.VBox { this.hls.subtitleTrack = -1; // 关闭字幕轨道 this.hls.loadSource(src); this.hls.attachMedia(this.video); - this.video.textTracks[0].mode = 'hidden'; this.hls.on(Hls.Events.MANIFEST_PARSED, () => this.onLoaded()); } else { console.error('HLS not supported');