mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 11:21:20 -08:00
调整播放列表接口
This commit is contained in:
1 parent
941ab07c66
commit
6056e7a0c6
9 files changed
+223
-235
No files matched your search
@@ -12,9 +12,4 @@ var art = new Artplayer({
|
||||
opacity: 1,
|
||||
fontSize: 25,
|
||||
})],
|
||||
});
|
||||
|
||||
console.info('Danmuku loading...');
|
||||
art.on('artplayerPluginDanmuku:loaded', () => {
|
||||
console.info('Danmuku loaded');
|
||||
});
|
||||
@@ -36,16 +36,16 @@ var art = new Artplayer({
|
||||
},
|
||||
},
|
||||
],
|
||||
plugins: [artplayerPluginPlaylist],
|
||||
plugins: [
|
||||
artplayerPluginPlaylist([
|
||||
{
|
||||
title: '你的名字',
|
||||
url: url + '/video/you-name.mp4',
|
||||
},
|
||||
{
|
||||
title: 'One more time one more chance',
|
||||
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
|
||||
},
|
||||
]),
|
||||
],
|
||||
});
|
||||
|
||||
art.plugins.artplayerPluginPlaylist.load([
|
||||
{
|
||||
title: '你的名字',
|
||||
url: url + '/video/you-name.mp4',
|
||||
},
|
||||
{
|
||||
title: 'One more time one more chance',
|
||||
url: url + '/video/one-more-time-one-more-chance-480p.mp4',
|
||||
},
|
||||
]);
|
||||
Reference in new issue
Block a user