mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-21 21:01:20 -08:00
update docs
This commit is contained in:
1 parent
cccb9dfcf9
commit
4a481a898b
124 files changed
+253
-239
No files matched your search
@@ -33,7 +33,7 @@ export default function artplayerPluginAds(option) {
|
||||
url: '?string',
|
||||
playDuration: 'number',
|
||||
totalDuration: 'number',
|
||||
muted: 'boolean',
|
||||
muted: '?boolean',
|
||||
i18n: {
|
||||
close: 'string',
|
||||
countdown: 'string',
|
||||
@@ -105,7 +105,9 @@ export default function artplayerPluginAds(option) {
|
||||
$ads = append(
|
||||
art.template.$ads,
|
||||
option.video
|
||||
? `<video class="artplayer-plugin-ads-video" src="${option.video}" ${option.muted ? 'muted' : ''} loop playsInline></video>`
|
||||
? `<video class="artplayer-plugin-ads-video" src="${option.video}" ${
|
||||
option.muted ? 'muted' : ''
|
||||
} loop playsInline></video>`
|
||||
: `<div class="artplayer-plugin-ads-html">${option.html}</div>`,
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user