refactor: Update loadedTime getter in Artplayer

This commit is contained in:
Harvey Zack committed 2024-08-21 23:13:44 +08:00
1 parent 796f25cea2
commit 0374046606
7 files changed
+94 -58

No files matched your search

+2
View File
@@ -46,6 +46,7 @@ export default class Subtitle extends Component {
}
get activeCue() {
if (!this.textTrack) return null;
return this.textTrack.activeCues[0];
}
@@ -108,6 +109,7 @@ export default class Subtitle extends Component {
template: { $subtitle },
} = this.art;
if (!this.textTrack) return null;
validator(subtitleOption, scheme.subtitle);
if (!subtitleOption.url) return;
this.style(subtitleOption.style);