blob: 353690d4dbf410d31bc7c65835be0680d05c3f72 [file] [log] [blame]
// Copyright 2019 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.
enum EncodedVideoChunkType {
"key",
"delta",
};
[
Exposed=(Window,DedicatedWorker),
RuntimeEnabled=WebCodecs
] interface EncodedVideoChunk {
constructor(EncodedVideoChunkInit init);
readonly attribute EncodedVideoChunkType type;
// TODO: Add frame dependency information
readonly attribute long long timestamp; // microseconds
readonly attribute unsigned long long? duration; // microseconds
readonly attribute unsigned long byteLength;
[RaisesException]
void copyTo(AllowSharedBufferSource destination);
};