@100mslive/hls-player
Version:
HLS client library which uses HTML5 Video element and Media Source Extension for playback
23 lines (22 loc) • 1.02 kB
TypeScript
import { HMSHLSException } from './HMSHLSException';
import { HMSHLSExceptionEvents } from '../utilies/constants';
export declare type HMSHLSErrorDetails = {
details: string;
fatal?: boolean;
};
export declare const HMSHLSErrorFactory: {
HLSNetworkError: {
manifestLoadError(data: HMSHLSErrorDetails): HMSHLSException;
manifestParsingError(data: HMSHLSErrorDetails): HMSHLSException;
layerLoadError(data: HMSHLSErrorDetails): HMSHLSException;
};
HLSMediaError: {
manifestIncompatibleCodecsError(data: HMSHLSErrorDetails): HMSHLSException;
fragDecryptError(data: HMSHLSErrorDetails): HMSHLSException;
bufferIncompatibleCodecsError(data: HMSHLSErrorDetails): HMSHLSException;
videoElementNotFound(): HMSHLSException;
autoplayFailed(): HMSHLSException;
hlsURLNotFound(msg?: string): HMSHLSException;
};
HLSError: (data: HMSHLSErrorDetails, name?: string | HMSHLSExceptionEvents, description?: string) => HMSHLSException;
};