mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
update mobile demo
This commit is contained in:
1 parent
a831975f4f
commit
829d3a4b42
5 files changed
+25
-15
No files matched your search
+6
-1
@@ -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,
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user