[webrtc-encoded-transform] add RTP timestamp to metadata (#169)

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

== add RTP timestamp to metadata ==
see also https://github.com/w3c/webrtc-encoded-transform/pull/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](https://webidl.spec.whatwg.org/#idl-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](https://w3c.github.io/webcodecs/#encodedaudiochunk-interface
```
  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



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


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

Received on Friday, 2 December 2022 18:40:09 UTC