diff --git a/index.bs b/index.bs index 61e2649..b38b443 100644 --- a/index.bs +++ b/index.bs @@ -447,57 +447,6 @@ dictionary RTCEncodedFrameMetadata { -## RTCEncodedVideoFrameType dictionary ## {#RTCEncodedVideoFrameType} -
-// New enum for video frame types. Will eventually re-use the equivalent defined
-// by WebCodecs.
-enum RTCEncodedVideoFrameType {
- "empty",
- "key",
- "delta",
-};
-
-| Enum value | Description | -
|---|---|
| - empty - | -
- - This frame contains no data. - - |
-
| - key - | -
- - This frame can be decoded without reference to any other frames. - - |
-
| - delta - | -
- - This frame references another frame and can not be decoded without that frame. - - |
-
dictionary RTCEncodedVideoFrameMetadata : RTCEncodedFrameMetadata {
@@ -552,12 +501,11 @@ dictionary RTCEncodedVideoFrameOptions {
RTCEncodedVideoFrameMetadata metadata;
};
-// New interfaces to define encoded video and audio frames. Will eventually
-// re-use or extend the equivalent defined in WebCodecs.
+// New interfaces to define RTC specific encoded video and audio frames used by RTCRtpScriptTransform.
[Exposed=(Window,DedicatedWorker), Serializable]
interface RTCEncodedVideoFrame {
constructor(RTCEncodedVideoFrame originalFrame, optional RTCEncodedVideoFrameOptions options = {});
- readonly attribute RTCEncodedVideoFrameType type;
+ readonly attribute EncodedVideoChunkType type;
attribute ArrayBuffer data;
RTCEncodedVideoFrameMetadata getMetadata();
};