UNPKG

@gobistories/gobi-web-integration

Version:

This library will let you put your Gobi stories on your site.

28 lines (27 loc) 694 B
export interface MediaPlayerProps { enabled: boolean; url: string; playing: boolean; muted: boolean; startOffset?: number; volume?: number; frameRate?: number; checkDrift?: boolean; onDrift?: (seconds: number) => void; onError?: (...args: any[]) => void; onStart?: () => void; onEnded: () => void; onPlay: () => void; onPause: () => void; onReady: () => void; onBuffer: () => void; onBufferEnd: () => void; onProgress: (seconds: number) => void; width?: number; height?: number; } export interface MediaPlayer { pause(): void; seekTo(target: number, type: 'fraction' | 'seconds'): void; end(): void; }