[webrtc-encoded-transform] No transfer steps defined for RTCEncodedAudioFrame and RTCEncodedVideoFrame (#231)

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

== No transfer steps defined for RTCEncodedAudioFrame and RTCEncodedVideoFrame ==
The spec uses StructuredSerializeWithTransfer in the [writeEncodedData algorithm](https://w3c.github.io/webrtc-encoded-transform/#abstract-opdef-writeencodeddata) but it does not define the [transfer steps](https://html.spec.whatwg.org/multipage/structured-data.html#transfer-steps) which are part of the [StructuredSerializeWithTransfer algorithm](https://html.spec.whatwg.org/multipage/structured-data.html#transfer-receiving-steps) (step 5.5.4). 

This leads to different behaviours by different implementations as seen in [this WPT](https://wpt.fyi/results/webrtc-encoded-transform/script-metadata-transform.https.html?label=experimental&label=master&aligned). 

Another potential issue is that serialization is with StructuredSerializeWithTransfer but deserialization is with StructuredDeserialize. Shouldn't it be [StructuredDeserializeWithTransfer](https://html.spec.whatwg.org/multipage/structured-data.html#structureddeserializewithtransfer)?

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


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

Received on Friday, 30 August 2024 09:07:43 UTC