| // Copyright 2019 The Chromium Authors |
| // 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) |
| ] interface EncodedVideoChunk { |
| [CallWith=ScriptState, RaisesException] |
| 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); |
| }; |