blob: 5aa4a002c4fca1fd9e0cc546cac8b8a1bd395be9 [file] [log] [blame]
// Copyright 2016 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.
module video_capture.mojom;
import "media/capture/mojo/video_capture_types.mojom";
import "services/video_capture/public/interfaces/capture_settings.mojom";
import "services/video_capture/public/interfaces/receiver.mojom";
// Represents access to a video capture device available on the machine.
// Note: Instead of offering an explicit Stop() method, the device
// is stopped automatically when the message pipe corresponding to either the
// Device or the given |receiver| is closed. The frames deliverd to |receiver|
// are guaranteed to use I420 encoding and are backed by Mojo shared buffers.
interface Device {
Start(CaptureSettings requested_settings, Receiver receiver);
};