Skip to content
Closed
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
void setMetadata(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();
void setMetadata(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