Re: [webrtc-encoded-transform] Need to create RTCEncodedVideoFrame from scratch (#134)

The main problem with having RTCEncodedVideoFrame inherit from EncodedVideoChunk is that the data in RTCEncodedVideoFrame is mutable.
This was arguably a design mistake, but it's hard to maintain backwards compatibility given that.

I think we need a constructor for RTCEncodedVideoFrame that takes an EncodedVideoChunk parameter (+ metadata), and the implementations should share as much as they can under the covers. But unifying seems hard.




-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/webrtc-encoded-transform/issues/134#issuecomment-1330201465 using your GitHub account


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

Received on Tuesday, 29 November 2022 07:34:15 UTC