update danmuku

This commit is contained in:
Harvey committed 2022-04-29 11:46:52 +08:00
1 parent 46fbccd267
commit 2ac14e96b9
7 files changed
+116 -92

No files matched your search

+12
View File
@@ -42,6 +42,7 @@
</div>
<script src="./assets/js/vconsole.min.js"></script>
<script src="./uncompiled/artplayer/index.js"></script>
<script src="./uncompiled/artplayer-plugin-danmuku/index.js"></script>
<script>
var vConsole = new VConsole();
@@ -116,6 +117,17 @@
},
},
],
plugins: [
artplayerPluginDanmuku({
danmuku: '/assets/sample/danmuku.xml',
speed: 5,
maxlength: 50,
margin: [10, 50],
opacity: 1,
fontSize: 14,
synchronousPlayback: false,
}),
],
whitelist: ['*'],
});