saltfish
Version:
An interactive video-guided tour system for web applications
47 lines • 1.67 kB
TypeScript
import type { IPlaylistOrchestrator, IUserManagementService, IManagerOrchestrator, IPlayerInitializationService, IStateMachineActionHandler, ManagedManagers } from './ServiceInterfaces';
import type { PlaylistOptions } from '../../types';
/**
* Service for handling playlist lifecycle and coordination
*/
export declare class PlaylistOrchestrator implements IPlaylistOrchestrator {
private managers;
private userManagementService?;
private managerOrchestrator?;
private playerInitializationService?;
private stateMachineActionHandler?;
constructor(managers: ManagedManagers);
/**
* Set the user management service for dependency
*/
setUserManagementService(service: IUserManagementService): void;
/**
* Set the manager orchestrator for dependency
*/
setManagerOrchestrator(orchestrator: IManagerOrchestrator): void;
/**
* Set the player initialization service for dependency
*/
setPlayerInitializationService(service: IPlayerInitializationService): void;
/**
* Set the state machine action handler for dependency
*/
setStateMachineActionHandler(handler: IStateMachineActionHandler): void;
/**
* Start a playlist with given options
*/
startPlaylist(playlistId: string, options?: PlaylistOptions): Promise<void>;
/**
* Reset current playlist to initial state
*/
resetPlaylist(): void;
/**
* Check if the player is initialized
*/
private isInitialized;
/**
* Reset managers that have reset capability
*/
private resetManagers;
destroy(): void;
}
//# sourceMappingURL=PlaylistOrchestrator.d.ts.map