mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 01:56:16 -08:00
添加弹幕设置
This commit is contained in:
1 parent
c89f99f8a3
commit
941ab07c66
13 files changed
+295
-59
No files matched your search
@@ -3,18 +3,18 @@ var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: url + '/video/you-name.mp4',
|
||||
autoSize: true,
|
||||
setting: true,
|
||||
plugins: [artplayerPluginDanmuku({
|
||||
danmuku: url + '/danmuku/you-name.xml',
|
||||
speed: 5,
|
||||
opacity: 1,
|
||||
color: '#fff',
|
||||
size: 25,
|
||||
maxlength: 50,
|
||||
margin: [10, 100],
|
||||
opacity: 1,
|
||||
fontSize: 25,
|
||||
})],
|
||||
});
|
||||
|
||||
console.info('弹幕加载中...');
|
||||
console.info('Danmuku loading...');
|
||||
art.on('artplayerPluginDanmuku:loaded', () => {
|
||||
console.info('弹幕准备就绪');
|
||||
console.info('Danmuku loaded');
|
||||
});
|
||||
Reference in new issue
Block a user