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