@volcengine/veplayer 1.11.0-rc.8 → 1.11.0-rc.9
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 +9 -2
- package/index.min.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2059,7 +2059,7 @@ export interface IMemoryPlayConfig {
|
|
|
2059
2059
|
* @type {number | string}
|
|
2060
2060
|
* @memberof IMemoryPlayConfig
|
|
2061
2061
|
*/
|
|
2062
|
-
memoryId
|
|
2062
|
+
memoryId?: number | string;
|
|
2063
2063
|
/** {zh}
|
|
2064
2064
|
* @brief 设置时间函数
|
|
2065
2065
|
* @default -
|
|
@@ -2088,6 +2088,10 @@ export interface IMemoryPlayConfig {
|
|
|
2088
2088
|
}
|
|
2089
2089
|
export declare class MemoryPlay extends Plugin {
|
|
2090
2090
|
private curTime;
|
|
2091
|
+
private pendingMemoryId;
|
|
2092
|
+
private hasPendingMemoryId;
|
|
2093
|
+
private skipNextGetTime;
|
|
2094
|
+
private hasSavedForPlayNext;
|
|
2091
2095
|
static get pluginName(): string;
|
|
2092
2096
|
static get defaultConfig(): IMemoryPlayConfig;
|
|
2093
2097
|
startTime: number;
|
|
@@ -2109,6 +2113,9 @@ export declare class MemoryPlay extends Plugin {
|
|
|
2109
2113
|
};
|
|
2110
2114
|
afterCreate(): void;
|
|
2111
2115
|
beforePlayerInit(): Promise<void>;
|
|
2116
|
+
private resolveMemoryId;
|
|
2117
|
+
setConfig(config: Partial<IMemoryPlayConfig> | boolean): void;
|
|
2118
|
+
private onPlayNext;
|
|
2112
2119
|
getTime(): Promise<void>;
|
|
2113
2120
|
saveTime(): void;
|
|
2114
2121
|
visibilitychangeCallback(): void;
|
|
@@ -4978,7 +4985,7 @@ declare class VePlayer {
|
|
|
4978
4985
|
* @memberof VePlayer
|
|
4979
4986
|
* @notes - 成功更换视频源后,默认是暂停状态。如果设置了自动播放,则会自动播放。
|
|
4980
4987
|
* - 此接口不支持切换火山引擎私有加密视频。
|
|
4981
|
-
* @param config 播放器实例化配置。此接口仅支持 `IPlayerConfig` 中的 `url`、`playList`、`poster`、`getVideoByToken`
|
|
4988
|
+
* @param config 播放器实例化配置。此接口仅支持 `IPlayerConfig` 中的 `url`、`playList`、`poster`、`getVideoByToken`、`vid`、`MemoryPlay` 字段。
|
|
4982
4989
|
* @param isNewVideo 是否为新视频。为 `false` 时,更换后,会从更换前的时间点继续播放。
|
|
4983
4990
|
*/
|
|
4984
4991
|
playNext(config: IPlayerConfig, isNewVideo?: boolean): Promise<any>;
|