@volcengine/veplayer 1.13.1 → 1.13.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +55 -0
- package/index.min.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ import VodLogger from '@byted/xgplayer-app-logger/es/logger';
|
|
|
6
6
|
import EventEmitter from 'eventemitter3';
|
|
7
7
|
import Player from 'xgplayer';
|
|
8
8
|
import { BasePlugin, I18N, IXGI18nText, Plugin } from 'xgplayer';
|
|
9
|
+
import XGAdsPlugin from 'xgplayer-ads';
|
|
10
|
+
import { AdsPluginConfig } from 'xgplayer-ads/es/plugin';
|
|
9
11
|
import { IUrl } from 'xgplayer/es/defaultConfig';
|
|
10
12
|
|
|
11
13
|
/**
|
|
@@ -5755,6 +5757,59 @@ export declare class Subtitle extends Plugin {
|
|
|
5755
5757
|
destroy(): void;
|
|
5756
5758
|
render(): string;
|
|
5757
5759
|
}
|
|
5760
|
+
export declare type AdRuleOffset = "pre" | "post" | `${number}:${number}:${number}`;
|
|
5761
|
+
export declare type AdRuleType = "linear" | "nonlinear";
|
|
5762
|
+
export interface AdRule {
|
|
5763
|
+
offset: AdRuleOffset;
|
|
5764
|
+
tag: string;
|
|
5765
|
+
type: AdRuleType;
|
|
5766
|
+
}
|
|
5767
|
+
export interface AdsConfig {
|
|
5768
|
+
controls?: boolean;
|
|
5769
|
+
enableSCTE35?: boolean;
|
|
5770
|
+
replayForSCTE35?: {
|
|
5771
|
+
enable?: boolean;
|
|
5772
|
+
minDurationOffset?: number;
|
|
5773
|
+
};
|
|
5774
|
+
adType: "ima" | "google-ima" | "ssai";
|
|
5775
|
+
ima: AdsPluginConfig["ima"] & {
|
|
5776
|
+
schedule?: AdRule[];
|
|
5777
|
+
adTagUrlForSCTE35?: string;
|
|
5778
|
+
};
|
|
5779
|
+
}
|
|
5780
|
+
export declare class AdsPlugin extends XGAdsPlugin {
|
|
5781
|
+
config: AdsConfig;
|
|
5782
|
+
csManager: any;
|
|
5783
|
+
player: any;
|
|
5784
|
+
root: any;
|
|
5785
|
+
private _scte35Manager?;
|
|
5786
|
+
private _ssManager?;
|
|
5787
|
+
private _onPlay?;
|
|
5788
|
+
private _onTimeUpdate?;
|
|
5789
|
+
private _onPause?;
|
|
5790
|
+
private _onError?;
|
|
5791
|
+
private _onClick?;
|
|
5792
|
+
static get pluginName(): string;
|
|
5793
|
+
get adManager(): any;
|
|
5794
|
+
afterCreate(): void;
|
|
5795
|
+
afterPlayerInit(): void;
|
|
5796
|
+
beforePlayerInit(): Promise<any>;
|
|
5797
|
+
destroy(): void;
|
|
5798
|
+
private _clearSSAIListener;
|
|
5799
|
+
private _setupSSAIListener;
|
|
5800
|
+
private _dispatchEvent;
|
|
5801
|
+
private _init;
|
|
5802
|
+
/**
|
|
5803
|
+
* Preroll广告播放完,retry重新拉流保证启播延迟
|
|
5804
|
+
*/
|
|
5805
|
+
/**
|
|
5806
|
+
* 如果存在midroll广告,需要将disconnectTime和maxLatency设为最大值,否则currentTime的变化会影响展示时间
|
|
5807
|
+
*/
|
|
5808
|
+
/**
|
|
5809
|
+
* 静音播放Preroll广告时,需要显示autoplayPlugin插件的ummute蒙层
|
|
5810
|
+
*/
|
|
5811
|
+
private _handlePrerollMuted;
|
|
5812
|
+
}
|
|
5758
5813
|
export declare class TimeShiftPlugin extends Plugin {
|
|
5759
5814
|
static get pluginName(): string;
|
|
5760
5815
|
static get defaultConfig(): {
|