feat: update subtitle properties and events to enhance cue management and retrieval

This commit is contained in:
Harvey Zack committed 2024-09-22 17:35:12 +08:00
1 parent 8ea85476e0
commit c0c5a12010
20 files changed
+4319 -2276

No files matched your search

+1 -1
View File
@@ -111,7 +111,7 @@ export default class Subtitle extends Component {
$newTrack.label = option.subtitle.name || 'Artplayer';
$newTrack.track.mode = 'hidden';
$newTrack.onload = () => {
this.art.emit('subtitleLoad', this.option, this.cues);
this.art.emit('subtitleLoad', this.cues, this.option);
};
this.eventDestroy();