1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = MediaKeySystemAccess , typescript_type = "MediaKeySystemAccess")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `MediaKeySystemAccess` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"]
13     pub type MediaKeySystemAccess;
14     # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySystemAccess" , js_name = keySystem)]
15     #[doc = "Getter for the `keySystem` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/keySystem)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"]
key_system(this: &MediaKeySystemAccess) -> String20     pub fn key_system(this: &MediaKeySystemAccess) -> String;
21     # [wasm_bindgen (method , structural , js_class = "MediaKeySystemAccess" , js_name = createMediaKeys)]
22     #[doc = "The `createMediaKeys()` method."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/createMediaKeys)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"]
create_media_keys(this: &MediaKeySystemAccess) -> ::js_sys::Promise27     pub fn create_media_keys(this: &MediaKeySystemAccess) -> ::js_sys::Promise;
28     #[cfg(feature = "MediaKeySystemConfiguration")]
29     # [wasm_bindgen (method , structural , js_class = "MediaKeySystemAccess" , js_name = getConfiguration)]
30     #[doc = "The `getConfiguration()` method."]
31     #[doc = ""]
32     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/getConfiguration)"]
33     #[doc = ""]
34     #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`, `MediaKeySystemConfiguration`*"]
get_configuration(this: &MediaKeySystemAccess) -> MediaKeySystemConfiguration35     pub fn get_configuration(this: &MediaKeySystemAccess) -> MediaKeySystemConfiguration;
36 }
37