@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 +17 -0
- package/index.min.js +2 -2
- package/lite.cjs +2 -2
- package/lite.d.ts +14 -0
- package/lite.esm.mjs +2 -2
- package/lite.min.js +2 -2
- package/package.json +1 -1
- package/plugin/modules/DashAbralgo.mjs +1 -1
- package/plugin/modules/XGVideo.mjs +1 -1
- package/plugin/modules/danmuMask.mjs +1 -1
- package/plugin/modules/danmujs.mjs +1 -1
- package/plugin/modules/dash.mjs +1 -1
- package/plugin/modules/flv.mjs +1 -1
- package/plugin/modules/hls.mjs +1 -1
- package/plugin/modules/hlsEncrypt.mjs +1 -1
- package/plugin/modules/mp4Encrypt.mjs +1 -1
- package/plugin/modules/preloader.mjs +1 -1
- package/plugin/modules/streamprobe.mjs +1 -1
- package/plugin/modules/vestrategy.mjs +1 -1
- package/plugin/modules/vestrategy_adapt_range.mjs +1 -1
- package/plugin/modules/vestrategy_h265.mjs +1 -1
- package/plugin/modules/vestrategy_preload.mjs +1 -1
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;
|