@phenixrts/sdk
Version:
JavaScript SDK
21 lines (20 loc) • 753 B
TypeScript
import { ChunkedStreamingOptions, ChunkedStreamingStatistics } from './StreamTypes';
export default class WebPlayer {
private readonly _logger;
private readonly _videoElement;
private readonly _kind;
private readonly _streamId;
private readonly _manifestURI;
private readonly _options;
private readonly _handleStreamFailure;
private _player;
private _lastReloadTime;
constructor(videoElement: HTMLVideoElement, kind: string, streamId: string, manifestURI: string, options: ChunkedStreamingOptions, handleStreamFailure: Function);
start(): void;
isSupported(): boolean;
getStats(): ChunkedStreamingStatistics;
dispose(): void;
private canReload;
private reloadIfAble;
private reload;
}