chromium/third_party/blink/renderer/modules/breakout_box/media_stream_track_processor.idl

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// See spec in developement at
// https://w3c.github.io/mediacapture-insertable-streams/
[
    Exposed=Window
]
interface MediaStreamTrackProcessor {
  [CallWith=ScriptState, RaisesException, MeasureAs=MediaStreamTrackProcessor]
  constructor(MediaStreamTrack track, optional unsigned short bufferSize);
  [CallWith=ScriptState, RaisesException, MeasureAs=MediaStreamTrackProcessor]
  constructor(MediaStreamTrackProcessorInit init);

  // This stream returns VideoFrame or AudioFrame objects.
  [CallWith=ScriptState] readonly attribute ReadableStream readable;
};