mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-22 22:14:39 +08:00
Signed-off-by: Victor Porof <victorporof@chromium.org> Bug: 1325812 Change-Id: I044170880d20ce0402062755787cccafd63c6a42 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3695370 Reviewed-by: Mathias Bynens <mathias@chromium.org>
67 lines
1.5 KiB
Plaintext
67 lines
1.5 KiB
Plaintext
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into webref
|
|
// (https://github.com/w3c/webref)
|
|
// Source: Screen Capture (https://w3c.github.io/mediacapture-screen-share/)
|
|
|
|
partial interface MediaDevices {
|
|
Promise<MediaStream> getDisplayMedia(optional DisplayMediaStreamConstraints constraints = {});
|
|
};
|
|
|
|
enum SelfCapturePreferenceEnum {
|
|
"include",
|
|
"exclude"
|
|
};
|
|
|
|
enum SystemAudioPreferenceEnum {
|
|
"include",
|
|
"exclude"
|
|
};
|
|
|
|
dictionary DisplayMediaStreamConstraints {
|
|
(boolean or MediaTrackConstraints) video = true;
|
|
(boolean or MediaTrackConstraints) audio = false;
|
|
SelfCapturePreferenceEnum selfBrowserSurface;
|
|
SystemAudioPreferenceEnum systemAudio;
|
|
};
|
|
|
|
partial dictionary MediaTrackSupportedConstraints {
|
|
boolean displaySurface = true;
|
|
boolean logicalSurface = true;
|
|
boolean cursor = true;
|
|
boolean restrictOwnAudio = true;
|
|
boolean suppressLocalAudioPlayback = true;
|
|
};
|
|
|
|
partial dictionary MediaTrackConstraintSet {
|
|
ConstrainDOMString displaySurface;
|
|
ConstrainBoolean logicalSurface;
|
|
ConstrainDOMString cursor;
|
|
ConstrainBoolean restrictOwnAudio;
|
|
ConstrainBoolean suppressLocalAudioPlayback;
|
|
};
|
|
|
|
partial dictionary MediaTrackSettings {
|
|
DOMString displaySurface;
|
|
boolean logicalSurface;
|
|
DOMString cursor;
|
|
boolean restrictOwnAudio;
|
|
};
|
|
|
|
partial dictionary MediaTrackCapabilities {
|
|
DOMString displaySurface;
|
|
boolean logicalSurface;
|
|
sequence<DOMString> cursor;
|
|
};
|
|
|
|
enum DisplayCaptureSurfaceType {
|
|
"monitor",
|
|
"window",
|
|
"browser"
|
|
};
|
|
|
|
enum CursorCaptureConstraint {
|
|
"never",
|
|
"always",
|
|
"motion"
|
|
};
|