@volcengine/veplayer 1.12.0-rc.9 → 1.12.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 CHANGED
@@ -6,8 +6,6 @@ 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';
11
9
  import { IUrl } from 'xgplayer/es/defaultConfig';
12
10
 
13
11
  /**
@@ -5532,59 +5530,6 @@ export declare class Subtitle extends Plugin {
5532
5530
  destroy(): void;
5533
5531
  render(): string;
5534
5532
  }
5535
- export declare type AdRuleOffset = "pre" | "post" | `${number}:${number}:${number}`;
5536
- export declare type AdRuleType = "linear" | "nonlinear";
5537
- export interface AdRule {
5538
- offset: AdRuleOffset;
5539
- tag: string;
5540
- type: AdRuleType;
5541
- }
5542
- export interface AdsConfig {
5543
- controls?: boolean;
5544
- enableSCTE35?: boolean;
5545
- replayForSCTE35?: {
5546
- enable?: boolean;
5547
- minDurationOffset?: number;
5548
- };
5549
- adType: "ima" | "google-ima" | "ssai";
5550
- ima: AdsPluginConfig["ima"] & {
5551
- schedule?: AdRule[];
5552
- adTagUrlForSCTE35?: string;
5553
- };
5554
- }
5555
- export declare class AdsPlugin extends XGAdsPlugin {
5556
- config: AdsConfig;
5557
- csManager: any;
5558
- player: any;
5559
- root: any;
5560
- private _scte35Manager?;
5561
- private _ssManager?;
5562
- private _onPlay?;
5563
- private _onTimeUpdate?;
5564
- private _onPause?;
5565
- private _onError?;
5566
- private _onClick?;
5567
- static get pluginName(): string;
5568
- get adManager(): any;
5569
- afterCreate(): void;
5570
- afterPlayerInit(): void;
5571
- beforePlayerInit(): Promise<any>;
5572
- destroy(): void;
5573
- private _clearSSAIListener;
5574
- private _setupSSAIListener;
5575
- private _dispatchEvent;
5576
- private _init;
5577
- /**
5578
- * Preroll广告播放完,retry重新拉流保证启播延迟
5579
- */
5580
- /**
5581
- * 如果存在midroll广告,需要将disconnectTime和maxLatency设为最大值,否则currentTime的变化会影响展示时间
5582
- */
5583
- /**
5584
- * 静音播放Preroll广告时,需要显示autoplayPlugin插件的ummute蒙层
5585
- */
5586
- private _handlePrerollMuted;
5587
- }
5588
5533
  export declare class TimeShiftPlugin extends Plugin {
5589
5534
  static get pluginName(): string;
5590
5535
  static get defaultConfig(): {