diff --git a/index.bs b/index.bs index 5c69e20..88b272c 100644 --- a/index.bs +++ b/index.bs @@ -406,6 +406,7 @@ interface RTCEncodedVideoFrame { readonly attribute RTCEncodedVideoFrameType type; attribute ArrayBuffer data; RTCEncodedVideoFrameMetadata getMetadata(); + undefined setMetadata(optional RTCEncodedVideoFrameMetadata metadata = {}); }; @@ -440,6 +441,16 @@ interface RTCEncodedVideoFrame { Returns the metadata associated with the frame.
++ 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. +
++ 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. +
+