mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 12:41:20 -08:00
update subtitle.js
This commit is contained in:
1 parent
8d057080f1
commit
a5b035e031
3 files changed
+3
-1
No files matched your search
@@ -3732,6 +3732,7 @@ class Subtitle extends (0, _componentDefault.default) {
|
||||
art.on("video:timeupdate", ()=>{
|
||||
if (!this.url) return;
|
||||
const state = this.art.template.$video.webkitDisplayingFullscreen;
|
||||
if (typeof state !== "boolean") return;
|
||||
if (state !== lastState) {
|
||||
lastState = state;
|
||||
this.createTrack(state ? "subtitles" : "metadata", this.url);
|
||||
|
||||
Reference in new issue
Block a user