update mobile demo

This commit is contained in:
Harvey committed 2022-06-21 13:49:45 +08:00
1 parent a831975f4f
commit 829d3a4b42
5 files changed
+25 -15

No files matched your search

+6 -1
View File
@@ -41,6 +41,7 @@
<script>var vConsole = new VConsole();</script>
<script src="./uncompiled/artplayer/index.js"></script>
<script src="./uncompiled/artplayer-plugin-danmuku/index.js"></script>
<script src="./uncompiled/artplayer-plugin-ads/index.js"></script>
<script>
var art = new Artplayer({
container: '.artplayer-app',
@@ -152,7 +153,11 @@
maxWidth: 0,
theme: 'light',
beforeEmit: (danmu) => !!danmu.text.trim(),
// mount: document.querySelector('.artplayer-danmuku'),
}),
artplayerPluginAds({
video: '/assets/sample/test1.mp4',
playDuration: 5,
totalDuration: 10,
}),
],
});