maxcountryman_web_sys/features/
gen_SourceBufferList.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SourceBufferList , typescript_type = "SourceBufferList")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `SourceBufferList` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
13    pub type SourceBufferList;
14    # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = length)]
15    #[doc = "Getter for the `length` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/length)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
20    pub fn length(this: &SourceBufferList) -> u32;
21    # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = onaddsourcebuffer)]
22    #[doc = "Getter for the `onaddsourcebuffer` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onaddsourcebuffer)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
27    pub fn onaddsourcebuffer(this: &SourceBufferList) -> Option<::js_sys::Function>;
28    # [wasm_bindgen (structural , method , setter , js_class = "SourceBufferList" , js_name = onaddsourcebuffer)]
29    #[doc = "Setter for the `onaddsourcebuffer` field of this object."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onaddsourcebuffer)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
34    pub fn set_onaddsourcebuffer(this: &SourceBufferList, value: Option<&::js_sys::Function>);
35    # [wasm_bindgen (structural , method , getter , js_class = "SourceBufferList" , js_name = onremovesourcebuffer)]
36    #[doc = "Getter for the `onremovesourcebuffer` field of this object."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onremovesourcebuffer)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
41    pub fn onremovesourcebuffer(this: &SourceBufferList) -> Option<::js_sys::Function>;
42    # [wasm_bindgen (structural , method , setter , js_class = "SourceBufferList" , js_name = onremovesourcebuffer)]
43    #[doc = "Setter for the `onremovesourcebuffer` field of this object."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onremovesourcebuffer)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"]
48    pub fn set_onremovesourcebuffer(this: &SourceBufferList, value: Option<&::js_sys::Function>);
49    #[cfg(feature = "SourceBuffer")]
50    #[wasm_bindgen(method, structural, js_class = "SourceBufferList", indexing_getter)]
51    #[doc = "Indexing getter."]
52    #[doc = ""]
53    #[doc = ""]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferList`*"]
56    pub fn get(this: &SourceBufferList, index: u32) -> Option<SourceBuffer>;
57}