import { CmdList, CmdSet } from './commands'; import { ChanLayer } from '../chanLayer'; import { Channel } from '../channel'; import { ConsumerRegistry } from '../consumer/consumer'; import { ClJobs } from '../clJobQueue'; import { ConfigParams } from '../config'; export declare class BasicCmds implements CmdList { private readonly consumerRegistry; private readonly channels; private readonly clJobs; constructor(consumerRegistry: ConsumerRegistry, channels: Array, clJobs: ClJobs); list(): CmdSet; parseParams(params: string[]): ConfigParams; /** * Loads a producer in the background and prepares it for playout. If no layer is specified the default layer index will be used. * * _clip_ will be parsed by available registered producer factories. If a successfully match is found, the producer will be loaded into the background. * If a file with the same name (extension excluded) but with the additional postfix _a is found this file will be used as key for the main clip. * * _loop_ will cause the clip to loop. * When playing and looping the clip will start at _frame_. * When playing and loop the clip will end after _frames_ number of frames. * * _auto_ will cause the clip to automatically start when foreground clip has ended (without play). * The clip is considered "started" after the optional transition has ended. * * Note: only one clip can be queued to play automatically per layer. */ loadbg(chanLay: ChanLayer, params: string[]): Promise; /** * Loads a clip to the foreground and plays the first frame before pausing. * If any clip is playing on the target foreground then this clip will be replaced. */ load(chanLay: ChanLayer, params: string[]): Promise; /** * Moves clip from background to foreground and starts playing it. * If a transition (see LOADBG) is prepared, it will be executed. * If additional parameters (see LOADBG) are provided then the provided clip will first be loaded to the background. */ play(chanLay: ChanLayer, params: string[]): Promise; /** * Pauses playback of the foreground clip on the specified layer. * The RESUME command can be used to resume playback again. */ pause(chanLay: ChanLayer, _params: string[]): Promise; /** Resumes playback of a foreground clip previously paused with the PAUSE command. */ resume(chanLay: ChanLayer, _params: string[]): Promise; /** Removes the foreground clip of the specified layer */ stop(chanLay: ChanLayer, _params: string[]): Promise; /** * Removes all clips (both foreground and background) of the specified layer. * If no layer is specified then all layers in the specified video_channel are cleared. */ clear(chanLay: ChanLayer, _params: string[]): Promise; add(chanLay: ChanLayer, params: string[]): Promise; remove(chanLay: ChanLayer, params: string[]): Promise; }