@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/lite.d.ts CHANGED
@@ -185,6 +185,19 @@ export interface LiteMediaInfoCacheState {
185
185
  expireTime: number;
186
186
  maxEntries: number;
187
187
  }
188
+ /** Stable playback lifecycle values exposed to JSSDK integrations. */
189
+ export type LitePlayerPlaybackState = "creating" | "ready" | "playing" | "paused" | "buffering" | "ended" | "error" | "destroyed";
190
+ /** Current or most recently played VePlayer snapshot. Times are in seconds. */
191
+ export interface LitePlayerPlaybackStateSnapshot {
192
+ playbackState: LitePlayerPlaybackState;
193
+ isEnded: boolean;
194
+ isPaused: boolean;
195
+ isBeforePlayerCreate: boolean;
196
+ albumId: string | null;
197
+ episodeId: string | null;
198
+ duration: number;
199
+ currentTime: number;
200
+ }
188
201
  /** Minimal preloader operations available from the Lite static surface. */
189
202
  export interface LitePreloaderManager {
190
203
  removeAll(): void;
@@ -652,6 +665,7 @@ export interface LiteVePlayerConstructor {
652
665
  setMediaInfoCacheConfig(config: LiteMediaInfoCacheConfig): void;
653
666
  getMediaInfoCacheConfig(): LiteMediaInfoCacheState;
654
667
  clearMediaInfoCache(): void;
668
+ getPlayerPlaybackState(): LitePlayerPlaybackStateSnapshot | null;
655
669
  generateEncryptInfo(unionId: string, streamType: "hls" | "mp4" | "dash"): Promise<LiteEncryptInfo | undefined>;
656
670
  }
657
671
  declare const LiteVePlayer: LiteVePlayerConstructor;