mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
添加字幕本地预览
This commit is contained in:
1 parent
2878705e72
commit
9cf1571ef8
15 files changed
+279
-81
No files matched your search
@@ -19,10 +19,10 @@ export default class Subtitle {
|
||||
return '';
|
||||
}
|
||||
|
||||
switch(url) {
|
||||
switch(url, name = 'unknown') {
|
||||
const { i18n, notice } = this.art;
|
||||
return this.init(url).then(blobUrl => {
|
||||
notice.show(i18n.get('Switch subtitle'));
|
||||
notice.show(`${i18n.get('Switch subtitle')}: ${name}`);
|
||||
return blobUrl;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user