[webrtc-encoded-transform] What timestamp does generateKeyFrame return when its promise resolves? (#281)

guidou has just created a new issue for https://github.com/w3c/webrtc-encoded-transform:

== What timestamp does generateKeyFrame return when its promise resolves? ==
The spec says:

> _Resolve task.[[promise]] with frame’s timestamp_

But a frame's timestamp is not defined in the spec.
RTCEncodedFrameMetadata and  RTCEncodedVideoFrameMetadata define several timestamps, the most relevant of which seem to be the rtpTimestamp and timestamp.

An older version of the spec also defined a timestamp field in RTCEncodedVideoFrame, which was removed and replaced by the rtpTimestamp field in RTCEncodedFrameMetadata.

Existing implementations resolve the promise with rtpTimestamp. If this is the intent, we should update the spec to be clear about this.

cc @jan-ivar @youennf 



Please view or discuss this issue at https://github.com/w3c/webrtc-encoded-transform/issues/281 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 28 August 2025 07:34:25 UTC