blob: a5388a3ec997632f2b88e868f1d2dc6eea0ded3b [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 unsigned long long timestamp; // microseconds
readonly attribute unsigned long long? duration; // microseconds
readonly attribute ArrayBuffer data;
};