mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 12:11:20 -08:00
添加log插件demo
This commit is contained in:
1 parent
888c929549
commit
e6242df6d3
4 files changed
+17
-1
No files matched your search
@@ -118,3 +118,9 @@ var art = new Artplayer({
|
||||
state: '<img src="/assets/img/state.png">',
|
||||
},
|
||||
});
|
||||
|
||||
Artplayer.config.events.forEach(function (item) {
|
||||
art.on('video:' + item, function (event) {
|
||||
art.plugins.log.emit('video: ' + event.type);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user