update artplayer-plugin-ads

This commit is contained in:
Harvey Zack committed 2023-04-19 11:06:29 +08:00
1 parent a490a0f5d9
commit 4244b085dc
2 files changed
+8 -13

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"license": "MIT", "license": "MIT",
"version": "1.0.6", "version": "2.0.0",
"name": "artplayer-plugin-ads", "name": "artplayer-plugin-ads",
"types": "types/artplayer-plugin-ads.d.ts", "types": "types/artplayer-plugin-ads.d.ts",
"description": "Ads plugin for ArtPlayer", "description": "Ads plugin for ArtPlayer",
@@ -5,29 +5,24 @@ export as namespace artplayerPluginAds;
type Option = { type Option = {
/** /**
* html广告,假如是视频广告则忽略该值 * 广告源文本,支持视频链接、图片链接、HTML文本
*/ */
html?: string; source: string;
/** /**
* 视频广告的地址 * 知名广告的类型:'video' | 'image' | 'html'
*/ */
video?: string; type: 'video' | 'image' | 'html';
/** /**
* 广告跳转网址,为空则不跳转 * 广告必看的时长,单位为秒
*/
url?: string;
/**
* 必须观看的时长,期间不能被跳过,单位为秒
*/ */
playDuration?: number; playDuration?: number;
/** /**
* 广告总时长,单位为秒 * 广告总的时长,单位为秒
*/ */
totalDuration?: string; totalDuration?: number;
/** /**
* 视频广告是否默认静音 * 视频广告是否默认静音