summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_video_frame.idl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_video_frame.idl')
-rw-r--r--chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_video_frame.idl25
1 files changed, 25 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_video_frame.idl b/chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_video_frame.idl
new file mode 100644
index 00000000000..14de6bbc44e
--- /dev/null
+++ b/chromium/third_party/blink/renderer/modules/peerconnection/rtc_encoded_video_frame.idl
@@ -0,0 +1,25 @@
+// Copyright 2020 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// https://github.com/alvestrand/webrtc-media-streams/blob/master/explainer.md#api
+// TODO(crbug.com/1052765): Add link to standard when available.
+
+enum RTCCodedVideoFrameType {
+ "empty",
+ "key",
+ "delta",
+};
+
+// TODO(crbug.com/1052765): Align with WebCodecs definition once it is stable.
+[RuntimeEnabled=RTCInsertableStreams]
+interface RTCEncodedVideoFrame {
+ readonly attribute RTCCodedVideoFrameType type;
+ readonly attribute unsigned long long timestamp; // microseconds
+ attribute ArrayBuffer data;
+ // TODO(crbug.com/1052765): Replace the following fields with a dictionary
+ // with structured data once we have decided what will be exposed.
+ readonly attribute ArrayBuffer additionalData;
+ readonly attribute unsigned long synchronizationSource;
+ stringifier;
+};