/** * @typedef {Object} TAudioSample * @property {number} dts * @property {number} pts * @property {number} originDts * @property {Uint8Array} data */ /** * @typedef {Object} TVideoSample * @property {number} dts * @property {number} pts * @property {boolean} isKeyframe * @property {number} originDts * @property {Uint8Array} data * @property {Array} nals */ export class AudioSample { /** * default audio sample * @return {TAudioSample} */ static getDefault(): TAudioSample; constructor(info: any); } export class VideoSample { /** * default video sample * @return {TVideoSample} */ static getDefault(): TVideoSample; /** * @constructor * @param info * @return {TVideoSample} */ constructor(info: any); } export type TAudioSample = { dts: number; pts: number; originDts: number; data: Uint8Array; }; export type TVideoSample = { dts: number; pts: number; isKeyframe: boolean; originDts: number; data: Uint8Array; nals: Array; };