add ads option

This commit is contained in:
Harvey committed 2021-12-23 12:34:13 +08:00
1 parent fe0e46212f
commit 0048991f7e
6 files changed
+31 -1

No files matched your search

+1
View File
@@ -141,6 +141,7 @@ export default class Artplayer extends Emitter {
localVideo: false,
localSubtitle: false,
useSSR: false,
ads: [],
layers: [],
contextmenu: [],
controls: [],
+5
View File
@@ -57,6 +57,11 @@ export default {
localVideo: b,
localSubtitle: b,
useSSR: b,
ads: [
{
url: s,
},
],
plugins: [f],
whitelist: [`${s}|${f}|${r}`],
layers: [ComponentOption],