mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
refactor: Update loadedTime getter in Artplayer
This commit is contained in:
1 parent
796f25cea2
commit
0374046606
7 files changed
+94
-58
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user