Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDL changes for setMetadata for 3.2.2 webrtc nv use case #202

Closed
wants to merge 13 commits into from
22 changes: 22 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ interface RTCEncodedVideoFrame {
readonly attribute RTCEncodedVideoFrameType type;
attribute ArrayBuffer data;
RTCEncodedVideoFrameMetadata getMetadata();
undefined setMetadata(optional RTCEncodedVideoFrameMetadata metadata = {});
};
</pre>

Expand Down Expand Up @@ -440,6 +441,16 @@ interface RTCEncodedVideoFrame {
Returns the metadata associated with the frame.
</p>
</dd>
<dt>
<dfn for="RTCEncodedVideoFrame" method>setMetadata()</dfn>
</dt>
<dd>
<p>
Sets a new metadata that would be associated with the frame. Only allowed to change the fields
frameId, dependencies and rtpTimetsamp in the RTCEncodedVideoFrameMetadata. All other changes
are not allowed and should return an error.
</p>
</dd>
</dl>

### Serialization ### {#RTCEncodedVideoFrame-serialization}
Expand Down Expand Up @@ -533,6 +544,7 @@ dictionary RTCEncodedAudioFrameMetadata {
interface RTCEncodedAudioFrame {
attribute ArrayBuffer data;
RTCEncodedAudioFrameMetadata getMetadata();
undefined setMetadata(optional RTCEncodedAudioFrameMetadata metadata = {});
};
</pre>

Expand All @@ -558,6 +570,16 @@ interface RTCEncodedAudioFrame {
Returns the metadata associated with the frame.
</p>
</dd>
<dt>
<dfn for="RTCEncodedAudioFrame" method>setMetadata()</dfn>
</dt>
<dd>
<p>
Sets a new metadata that would be associated with the frame. Only allowed to change
the rtpTimetsamp field in the RTCEncodedAudioFrameMetadata. All other changes are
not allowed and should return an error.
</p>
</dd>
</dl>


Expand Down
Loading