summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_MediaDevices.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_MediaDevices.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_MediaDevices.rs')
-rw-r--r--vendor/web-sys/src/features/gen_MediaDevices.rs79
1 files changed, 79 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_MediaDevices.rs b/vendor/web-sys/src/features/gen_MediaDevices.rs
new file mode 100644
index 000000000..d8a76c67f
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_MediaDevices.rs
@@ -0,0 +1,79 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaDevices , typescript_type = "MediaDevices")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `MediaDevices` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"]
+ pub type MediaDevices;
+ # [wasm_bindgen (structural , method , getter , js_class = "MediaDevices" , js_name = ondevicechange)]
+ #[doc = "Getter for the `ondevicechange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"]
+ pub fn ondevicechange(this: &MediaDevices) -> Option<::js_sys::Function>;
+ # [wasm_bindgen (structural , method , setter , js_class = "MediaDevices" , js_name = ondevicechange)]
+ #[doc = "Setter for the `ondevicechange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"]
+ pub fn set_ondevicechange(this: &MediaDevices, value: Option<&::js_sys::Function>);
+ # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = enumerateDevices)]
+ #[doc = "The `enumerateDevices()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"]
+ pub fn enumerate_devices(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getDisplayMedia)]
+ #[doc = "The `getDisplayMedia()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"]
+ pub fn get_display_media(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>;
+ #[cfg(feature = "DisplayMediaStreamConstraints")]
+ # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getDisplayMedia)]
+ #[doc = "The `getDisplayMedia()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DisplayMediaStreamConstraints`, `MediaDevices`*"]
+ pub fn get_display_media_with_constraints(
+ this: &MediaDevices,
+ constraints: &DisplayMediaStreamConstraints,
+ ) -> Result<::js_sys::Promise, JsValue>;
+ #[cfg(feature = "MediaTrackSupportedConstraints")]
+ # [wasm_bindgen (method , structural , js_class = "MediaDevices" , js_name = getSupportedConstraints)]
+ #[doc = "The `getSupportedConstraints()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getSupportedConstraints)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `MediaTrackSupportedConstraints`*"]
+ pub fn get_supported_constraints(this: &MediaDevices) -> MediaTrackSupportedConstraints;
+ # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getUserMedia)]
+ #[doc = "The `getUserMedia()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"]
+ pub fn get_user_media(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>;
+ #[cfg(feature = "MediaStreamConstraints")]
+ # [wasm_bindgen (catch , method , structural , js_class = "MediaDevices" , js_name = getUserMedia)]
+ #[doc = "The `getUserMedia()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `MediaStreamConstraints`*"]
+ pub fn get_user_media_with_constraints(
+ this: &MediaDevices,
+ constraints: &MediaStreamConstraints,
+ ) -> Result<::js_sys::Promise, JsValue>;
+}