Truly independent web browser
// https://w3c.github.io/webrtc-encoded-transform/#rtcencodedvideoframe
dictionary RTCEncodedFrameMetadata {
unsigned long synchronizationSource;
octet payloadType;
sequence<unsigned long> contributingSources;
unsigned long rtpTimestamp;
DOMHighResTimeStamp receiveTime;
DOMHighResTimeStamp captureTime;
DOMHighResTimeStamp senderCaptureTimeOffset;
DOMString mimeType;
};
dictionary RTCEncodedVideoFrameMetadata : RTCEncodedFrameMetadata {
unsigned long long frameId;
sequence<unsigned long long> dependencies;
unsigned short width;
unsigned short height;
unsigned long spatialIndex;
unsigned long temporalIndex;
long long timestamp;
};
dictionary RTCEncodedVideoFrameOptions {
RTCEncodedVideoFrameMetadata metadata;
};
// FIXME: spec has `readonly attribute EncodedVideoChunkType type;` — WebCodecs isn't implemented.
[Exposed=(Window,DedicatedWorker), Serializable]
interface RTCEncodedVideoFrame {
[FIXME] constructor(RTCEncodedVideoFrame originalFrame, optional RTCEncodedVideoFrameOptions options = {});
[FIXME] attribute ArrayBuffer data;
[FIXME] RTCEncodedVideoFrameMetadata getMetadata();
};