26 lines
1.2 KiB
TypeScript
26 lines
1.2 KiB
TypeScript
|
|
import { type VideoPlayerRuntimeEventMap, type VideoPlayerRuntimeInitOptions, type VideoPlayerRuntimeState, type VideoPlayerRuntimeUnsubscribe, type VideoPlayerRuntimeUpdateOptions } from "../core";
|
||
|
|
export interface AngularVideoPlayerInput extends Omit<VideoPlayerRuntimeUpdateOptions, "source"> {
|
||
|
|
source?: VideoPlayerRuntimeInitOptions["source"];
|
||
|
|
}
|
||
|
|
export interface AngularVideoPlayerAttachInput extends Omit<VideoPlayerRuntimeInitOptions, "container"> {
|
||
|
|
}
|
||
|
|
export interface AngularVideoPlayerState {
|
||
|
|
input: AngularVideoPlayerInput;
|
||
|
|
runtime: VideoPlayerRuntimeState;
|
||
|
|
}
|
||
|
|
export declare class AngularVideoPlayerAdapter {
|
||
|
|
private readonly runtime;
|
||
|
|
private input;
|
||
|
|
attach(container: HTMLElement, input: AngularVideoPlayerAttachInput): Promise<{
|
||
|
|
input: AngularVideoPlayerInput;
|
||
|
|
runtime: VideoPlayerRuntimeState;
|
||
|
|
}>;
|
||
|
|
update(nextInput: AngularVideoPlayerInput): Promise<{
|
||
|
|
input: AngularVideoPlayerInput;
|
||
|
|
runtime: VideoPlayerRuntimeState;
|
||
|
|
}>;
|
||
|
|
on<K extends keyof VideoPlayerRuntimeEventMap>(event: K, handler: (payload: VideoPlayerRuntimeEventMap[K]) => void): VideoPlayerRuntimeUnsubscribe;
|
||
|
|
destroy(): void;
|
||
|
|
getState(): AngularVideoPlayerState;
|
||
|
|
}
|
||
|
|
//# sourceMappingURL=index.d.ts.map
|