diff --git a/packages/rtp/src/container/mp4/container.ts b/packages/rtp/src/container/mp4/container.ts index 02a9d746..a2f2aad9 100644 --- a/packages/rtp/src/container/mp4/container.ts +++ b/packages/rtp/src/container/mp4/container.ts @@ -233,11 +233,11 @@ export class Mp4Container { } const res = { - type: frame.type, - timestamp: frame.timestamp, - duration: frame.duration ?? 0, - data, + type: bufferFrame.type, + timestamp: bufferFrame.timestamp, kind: frame.track, + duration, + data, }; this.onData.execute(res); }