chromium/third_party/blink/renderer/modules/webcodecs/encoded_video_chunk_init.idl

// 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.

// https://github.com/WICG/web-codecs

dictionary EncodedVideoChunkInit {
  required EncodedVideoChunkType type;
  required [EnforceRange] long long timestamp; // microseconds
  [EnforceRange] unsigned long long duration;  // microseconds
  required AllowSharedBufferSource data;

  [RuntimeEnabled=MediaSourceExtensionsForWebCodecs] DecryptConfig decryptConfig;

  sequence<ArrayBuffer> transfer = [];
};