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