@100mslive/hms-video-store
Version:
@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow
24 lines (23 loc) • 1.02 kB
TypeScript
import { IHMSStore } from '../IHMSStore';
import { HMSPlaylistManager } from '../internal';
import { HMSGenericTypes, HMSPlaylistItem, HMSPlaylistType, IHMSPlaylistActions } from '../schema';
export declare class HMSPlaylist<T extends HMSGenericTypes> implements IHMSPlaylistActions {
private playlistManager;
private syncPlaylistState;
private store;
private type;
constructor(playlistManager: HMSPlaylistManager, type: HMSPlaylistType, syncPlaylistState: (action: string) => void, store: IHMSStore<T>);
play(id: string): Promise<void>;
pause(): Promise<void>;
playNext(): Promise<void>;
playPrevious(): Promise<void>;
seek(seekValue: number): void;
seekTo(seekValue: number): void;
setVolume(volume: number): void;
setList<T>(list: HMSPlaylistItem<T>[]): void;
stop(): Promise<void>;
setIsAutoplayOn(autoplay: boolean): void;
setPlaybackRate(playbackRate: number): void;
removeItem(id: string): Promise<boolean>;
clearList(): Promise<void>;
}