调整播放列表接口

This commit is contained in:
zhw2590582 committed 2019-05-01 10:57:49 +08:00
1 parent 941ab07c66
commit 6056e7a0c6
9 files changed
+223 -235

No files matched your search

-5
View File
@@ -12,9 +12,4 @@ var art = new Artplayer({
opacity: 1,
fontSize: 25,
})],
});
console.info('Danmuku loading...');
art.on('artplayerPluginDanmuku:loaded', () => {
console.info('Danmuku loaded');
});
+12 -12
View File
@@ -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',
},
]);