blob: fecfe4d07881b9219147b79d90b639c0cb50777f [file] [log] [blame]
// Copyright 2020 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.
// See spec in developement at https://github.com/WICG/web-codecs/blob/master/index.bs
// and https://github.com/WICG/web-codecs/blob/master/explainer.md.
[
Exposed=Window,
RuntimeEnabled=WebCodecs
] interface VideoTrackReader {
// DEPRECATED: use MediaStreamTrackProcessor instead.
// TODO(https://crbug.com/1157610): remove this idl.
[CallWith=ScriptState, RaisesException, MeasureAs=WebCodecsVideoTrackReader]
constructor(MediaStreamTrack track);
[RaisesException]
void start(VideoFrameOutputCallback callback);
[RaisesException]
void stop();
};