Skip to content

What timestamp does generateKeyFrame return when its promise resolves? #281

@guidou

Description

@guidou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions