@phenixrts/sdk
Version:
JavaScript SDK
27 lines (26 loc) • 875 B
TypeScript
export type Timecode = {
hours: number | null;
minutes: number | null;
seconds: number | null;
frames: number;
isFrameDrop: boolean;
};
export type H264DecodedFrameTimingInformation = {
mid: string;
trackId: string;
kind: 'video';
codec: 'H264';
timecode: Timecode | null;
sourceTimestamp: Date | null;
ingestTimestamp: Date | null;
encodeTimestamp: Date | null;
transcodeTimestamp: Date | null;
receiveTimestamp: Date;
playbackState: 'playing' | 'paused' | 'stalled' | 'ended' | 'error' | 'waiting';
};
export type DecodedFrameTimingInformation = H264DecodedFrameTimingInformation;
export type H264RenderedFrameTimingInformation = H264DecodedFrameTimingInformation & {
renderTimestamp: Date;
playbackState: 'playing';
};
export type RenderedFrameTimingInformation = H264RenderedFrameTimingInformation;