mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
webrtc: Add MediaDeviceInfo interface and MediaDevices.enumeratedDevices()
This commit is contained in:
1 parent
54f064352a
commit
d66b227f9a
1 file changed
+9
-1
Vendored
+9
-1
@@ -188,6 +188,14 @@ interface Navigator {
|
||||
|
||||
interface MediaDevices {
|
||||
getSupportedConstraints(): MediaTrackSupportedConstraints;
|
||||
|
||||
|
||||
getUserMedia(constraints: MediaStreamConstraints): Promise<MediaStream>;
|
||||
enumerateDevices(): Promise<MediaDeviceInfo[]>;
|
||||
}
|
||||
|
||||
interface MediaDeviceInfo {
|
||||
label: string;
|
||||
id: string;
|
||||
kind: string;
|
||||
facing: string;
|
||||
}
|
||||
Reference in new issue
Block a user