mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
update docs
This commit is contained in:
1 parent
b6055b202a
commit
505c193331
41 files changed
+393
-122
No files matched your search
@@ -81,7 +81,6 @@ export default class Subtitle extends Component {
|
||||
if (newOption.name) {
|
||||
notice.show = `${i18n.get('Switch subtitle')}: ${newOption.name}`;
|
||||
}
|
||||
this.art.emit('subtitleSwitch', subUrl);
|
||||
return subUrl;
|
||||
});
|
||||
}
|
||||
@@ -132,6 +131,7 @@ export default class Subtitle extends Component {
|
||||
if (this.url === subUrl) return subUrl;
|
||||
URL.revokeObjectURL(this.url);
|
||||
this.art.template.$track.src = subUrl;
|
||||
this.art.emit('subtitleSwitch', subUrl);
|
||||
return subUrl;
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
Reference in new issue
Block a user