@phenixrts/sdk
Version:
JavaScript SDK
24 lines (23 loc) • 1.33 kB
TypeScript
import { AudioCodec } from '../decode/bitstream/codec/AudioCodec';
import { VideoCodec } from '../decode/bitstream/codec/VideoCodec';
export declare const SkipFrame: unique symbol;
export type SurrogateFrameType = ArrayBuffer | undefined | typeof SkipFrame;
export default class SurrogateFrameDataManager {
private static readonly _isSafari;
private static readonly _isAndroidChrome;
private static readonly _singleZeroByte;
private static readonly _dummyAudioSilentPerCodec;
private static readonly _dummy2x2VideoIFramePerCodec;
private static readonly _dummy2x2VideoPFramePerCodec;
private static readonly _surrogate28x16H264IFrame;
private static readonly _surrogate28x16H264PFrame;
private static readonly _surrogate28x16PFrameFrameNumberReset;
private static _surrogate28x16PFrameFrameNumber;
static getSurrogateAudioSilentPerCodec(codec: AudioCodec): ArrayBuffer | undefined;
static getInvalidSurrogateAudioData(): ArrayBuffer;
static getSurrogateVideoIFramePerCodec(codec: VideoCodec): ArrayBuffer | undefined;
static getInvalidSurrogateVideoIFrame(codec: VideoCodec): SurrogateFrameType;
static getSurrogateVideoPFramePerCodec(codec: VideoCodec): ArrayBuffer | undefined;
static getInvalidSurrogateVideoPFrame(): SurrogateFrameType;
private constructor();
}