bugfix
This commit is contained in:
parent
5d7dc25a2b
commit
0d99fc2187
@ -89,6 +89,7 @@ bricks.VideoPlayer = class extends bricks.VBox {
|
|||||||
if (src.endsWith('.m3u8') || src.includes('m3u8')) {
|
if (src.endsWith('.m3u8') || src.includes('m3u8')) {
|
||||||
if (Hls.isSupported()) {
|
if (Hls.isSupported()) {
|
||||||
this.hls = new Hls();
|
this.hls = new Hls();
|
||||||
|
this.hls.subtitleTrack = -1; // 关闭字幕轨道
|
||||||
this.hls.loadSource(src);
|
this.hls.loadSource(src);
|
||||||
this.hls.attachMedia(this.video);
|
this.hls.attachMedia(this.video);
|
||||||
this.hls.on(Hls.Events.MANIFEST_PARSED, () => this.onLoaded());
|
this.hls.on(Hls.Events.MANIFEST_PARSED, () => this.onLoaded());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user