blob: f7aa991e1e2a6adcefaabcccf4066963a354c92d [file] [log] [blame]
// Copyright 2015 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.
// The spec for MediaDevices is in two parts:
// http://w3c.github.io/mediacapture-main/#mediadevices
// http://w3c.github.io/mediacapture-main/#mediadevices-interface-extensions
[
GarbageCollected,
RuntimeEnabled=MediaDevices
]
interface MediaDevices {
[CallWith=ScriptState, MeasureAs=MediaDevicesEnumerateDevices] Promise<sequence<MediaDeviceInfo>> enumerateDevices();
[RuntimeEnabled=GetUserMedia, CallWith=ScriptState, RaisesException] Promise<MediaStream> getUserMedia(MediaStreamConstraints options);
};