You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new RTCEncodedVideoFrame from the given |originalFrame| and sets its metadata to |newMetadata|.
443
+
Creates a new {{RTCEncodedVideoFrame}} from the given |originalFrame| and sets the internal metadata to |newMetadata|.
444
444
445
445
When called, run the following steps:
446
446
447
447
1. Set this.`[[type]]` to |originalFrame|.`[[type]]`.
448
448
1. Set this.`[[data]]` to |originalFrame|.`[[data]]`.
449
-
1. Set the internal representation of metadata to |newMetadata| such that this.`[[getMetadata()]]` returns |newMetadata|.
449
+
1. If |newMetadata| is not empty, set the internal representation of metadata to |newMetadata| such that {{RTCEncodedVideoFrame/getMetadata()}} returns |newMetadata|. Otherwise, set the internal representation of metadata to originalFrame.`[[getMetadata()]]`.
Create a new RTCEncodedAudioFrame from the given |originalFrame| and sets its metadata to |newMetadata|.
662
+
Creates a new {{RTCEncodedAudioFrame}} from the given |originalFrame| and sets the internal metadata to |newMetadata|.
663
663
664
664
When called, run the following steps:
665
665
666
666
1. Set this.`[[data]]` to |originalFrame|.`[[data]]`.
667
-
1. Set the internal representation of metadata to |newMetadata| such that this.`[[getMetadata()]]` returns |newMetadata|.
667
+
1. If |newMetadata| is not empty, set the internal representation of metadata to |newMetadata| such that {{RTCEncodedAudioFrame/getMetadata()}} returns |newMetadata|. Otherwise, set the internal representation of metadata to originalFrame.`[[getMetadata()]]`.
0 commit comments