blob: 2456deeb2ac8ad7d23ebb28afd0ac835b8f31c5a [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([AllowShared] BufferSource destination);
};