Skip to content

add RTP timestamp to metadata #169

Closed
@fippo

Description

@fippo

see also #116

https://w3c.github.io/webrtc-encoded-transform/#RTCEncodedVideoFrame-interface
and
https://w3c.github.io/webrtc-encoded-transform/#RTCEncodedAudioFrame-interface
both define a timestamp as

readonly attribute unsigned long timestamp;

which by definition is the RTP timestamp (and this was changed to align with implementations).
This is different from what we have in Webcodecs

  readonly attribute long long timestamp;          // microseconds

This is hard to fix so we should do this as follows:

  • add rtpTimestamp to metadata
  • deprecate the existing timestamp on Encoded*Frame
  • remove from implementations for 1+ release
  • re-add with correct type

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions