mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 21:31:20 -08:00
添加更多事件
This commit is contained in:
1 parent
2eb76650ba
commit
746e059a31
4 files changed
+4
-2
No files matched your search
@@ -66,7 +66,7 @@ function artplayerPluginSubtitle(art) {
|
||||
cue.endTime = cuesCache[index].endTime + time;
|
||||
});
|
||||
notice.show(`${i18n.get('Subtitle offset time')}: ${value}s`);
|
||||
art.emit('subtitle:offset', value);
|
||||
art.emit('artplayerPluginSubtitle:set', value);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ export default class Plugins {
|
||||
pluginName = `plugin${this.id}`;
|
||||
}
|
||||
this[pluginName] = result;
|
||||
this.art.emit('plugin:add', plugin);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user