@byteplus/veplayer 1.15.3-rc.37 → 1.15.3-rc.38

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
@@ -5467,6 +5467,19 @@ export declare type NormalizedMediaInfoCacheConfig = {
5467
5467
  maxEntries: number;
5468
5468
  };
5469
5469
  declare function getMediaInfoCacheConfig(): NormalizedMediaInfoCacheConfig;
5470
+ export interface DramaIdentity {
5471
+ albumId: string | null;
5472
+ episodeId: string | null;
5473
+ }
5474
+ export declare type PlayerPlaybackState = "creating" | "ready" | "playing" | "paused" | "buffering" | "ended" | "error" | "destroyed";
5475
+ export interface PlayerPlaybackStateSnapshot extends DramaIdentity {
5476
+ playbackState: PlayerPlaybackState;
5477
+ isEnded: boolean;
5478
+ isPaused: boolean;
5479
+ isBeforePlayerCreate: boolean;
5480
+ duration: number;
5481
+ currentTime: number;
5482
+ }
5470
5483
  /** {zh}
5471
5484
  * @hidden
5472
5485
  */
@@ -5501,6 +5514,8 @@ export interface EncryptInfo {
5501
5514
  unionInfo: string;
5502
5515
  }
5503
5516
  declare class VePlayer {
5517
+ /** @hidden SDK integration API used by the JSSDK facade. */
5518
+ static getPlayerPlaybackState(): PlayerPlaybackStateSnapshot | null;
5504
5519
  /**
5505
5520
  * 注册业务已打包的 UMD 模块,供所有后续创建的播放器共享使用。
5506
5521
  */
@@ -5899,6 +5914,7 @@ declare class VePlayer {
5899
5914
  * @hidden
5900
5915
  */
5901
5916
  createPlayer: () => Promise<PlayerCore>;
5917
+ private _createPlayer;
5902
5918
  /** {zh}
5903
5919
  * @hidden
5904
5920
  * @brief 设置合并开发者的插件配置,如果开发者从初始化的configs里传了插件配置,则只用开发者的配置,并补齐其他参数
@@ -6411,6 +6427,7 @@ declare class VePlayer {
6411
6427
  * @memberof VePlayer
6412
6428
  * @brief 销毁当前播放器实例。
6413
6429
  */
6430
+ private _teardown;
6414
6431
  destroy(): Promise<void>;
6415
6432
  }
6416
6433
  export declare function getI18N(): typeof I18N;