summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/interfaces/webrtc-encoded-transform.idl
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/interfaces/webrtc-encoded-transform.idl')
-rw-r--r--testing/web-platform/tests/interfaces/webrtc-encoded-transform.idl10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/interfaces/webrtc-encoded-transform.idl b/testing/web-platform/tests/interfaces/webrtc-encoded-transform.idl
index 8a756702c7..0db2f2b9a8 100644
--- a/testing/web-platform/tests/interfaces/webrtc-encoded-transform.idl
+++ b/testing/web-platform/tests/interfaces/webrtc-encoded-transform.idl
@@ -78,10 +78,15 @@ dictionary RTCEncodedVideoFrameMetadata {
DOMString mimeType;
};
+dictionary RTCEncodedVideoFrameOptions {
+ RTCEncodedVideoFrameMetadata metadata;
+};
+
// New interfaces to define encoded video and audio frames. Will eventually
// re-use or extend the equivalent defined in WebCodecs.
[Exposed=(Window,DedicatedWorker), Serializable]
interface RTCEncodedVideoFrame {
+ constructor(RTCEncodedVideoFrame originalFrame, optional RTCEncodedVideoFrameOptions options = {});
readonly attribute RTCEncodedVideoFrameType type;
attribute ArrayBuffer data;
RTCEncodedVideoFrameMetadata getMetadata();
@@ -96,8 +101,13 @@ dictionary RTCEncodedAudioFrameMetadata {
DOMString mimeType;
};
+dictionary RTCEncodedAudioFrameOptions {
+ RTCEncodedAudioFrameMetadata metadata;
+};
+
[Exposed=(Window,DedicatedWorker), Serializable]
interface RTCEncodedAudioFrame {
+ constructor(RTCEncodedAudioFrame originalFrame, optional RTCEncodedAudioFrameOptions options = {});
attribute ArrayBuffer data;
RTCEncodedAudioFrameMetadata getMetadata();
};