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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
|
#![allow(unused_imports)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = SourceBuffer , typescript_type = "SourceBuffer")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `SourceBuffer` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub type SourceBuffer;
#[cfg(feature = "SourceBufferAppendMode")]
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = mode)]
#[doc = "Getter for the `mode` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferAppendMode`*"]
pub fn mode(this: &SourceBuffer) -> SourceBufferAppendMode;
#[cfg(feature = "SourceBufferAppendMode")]
# [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = mode)]
#[doc = "Setter for the `mode` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferAppendMode`*"]
pub fn set_mode(this: &SourceBuffer, value: SourceBufferAppendMode);
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = updating)]
#[doc = "Getter for the `updating` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/updating)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn updating(this: &SourceBuffer) -> bool;
#[cfg(feature = "TimeRanges")]
# [wasm_bindgen (structural , catch , method , getter , js_class = "SourceBuffer" , js_name = buffered)]
#[doc = "Getter for the `buffered` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/buffered)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `TimeRanges`*"]
pub fn buffered(this: &SourceBuffer) -> Result<TimeRanges, JsValue>;
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = timestampOffset)]
#[doc = "Getter for the `timestampOffset` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn timestamp_offset(this: &SourceBuffer) -> f64;
# [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = timestampOffset)]
#[doc = "Setter for the `timestampOffset` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn set_timestamp_offset(this: &SourceBuffer, value: f64);
#[cfg(feature = "AudioTrackList")]
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = audioTracks)]
#[doc = "Getter for the `audioTracks` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/audioTracks)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioTrackList`, `SourceBuffer`*"]
pub fn audio_tracks(this: &SourceBuffer) -> AudioTrackList;
#[cfg(feature = "VideoTrackList")]
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = videoTracks)]
#[doc = "Getter for the `videoTracks` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/videoTracks)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `VideoTrackList`*"]
pub fn video_tracks(this: &SourceBuffer) -> VideoTrackList;
#[cfg(feature = "TextTrackList")]
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = textTracks)]
#[doc = "Getter for the `textTracks` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/textTracks)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `TextTrackList`*"]
pub fn text_tracks(this: &SourceBuffer) -> TextTrackList;
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = appendWindowStart)]
#[doc = "Getter for the `appendWindowStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn append_window_start(this: &SourceBuffer) -> f64;
# [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = appendWindowStart)]
#[doc = "Setter for the `appendWindowStart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn set_append_window_start(this: &SourceBuffer, value: f64);
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = appendWindowEnd)]
#[doc = "Getter for the `appendWindowEnd` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn append_window_end(this: &SourceBuffer) -> f64;
# [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = appendWindowEnd)]
#[doc = "Setter for the `appendWindowEnd` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn set_append_window_end(this: &SourceBuffer, value: f64);
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onupdatestart)]
#[doc = "Getter for the `onupdatestart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdatestart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn onupdatestart(this: &SourceBuffer) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onupdatestart)]
#[doc = "Setter for the `onupdatestart` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdatestart)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn set_onupdatestart(this: &SourceBuffer, value: Option<&::js_sys::Function>);
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onupdate)]
#[doc = "Getter for the `onupdate` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdate)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn onupdate(this: &SourceBuffer) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onupdate)]
#[doc = "Setter for the `onupdate` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdate)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn set_onupdate(this: &SourceBuffer, value: Option<&::js_sys::Function>);
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onupdateend)]
#[doc = "Getter for the `onupdateend` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdateend)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn onupdateend(this: &SourceBuffer) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onupdateend)]
#[doc = "Setter for the `onupdateend` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdateend)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn set_onupdateend(this: &SourceBuffer, value: Option<&::js_sys::Function>);
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onerror)]
#[doc = "Getter for the `onerror` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onerror)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn onerror(this: &SourceBuffer) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onerror)]
#[doc = "Setter for the `onerror` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onerror)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn set_onerror(this: &SourceBuffer, value: Option<&::js_sys::Function>);
# [wasm_bindgen (structural , method , getter , js_class = "SourceBuffer" , js_name = onabort)]
#[doc = "Getter for the `onabort` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onabort)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn onabort(this: &SourceBuffer) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "SourceBuffer" , js_name = onabort)]
#[doc = "Setter for the `onabort` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onabort)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn set_onabort(this: &SourceBuffer, value: Option<&::js_sys::Function>);
# [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = abort)]
#[doc = "The `abort()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/abort)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn abort(this: &SourceBuffer) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer)]
#[doc = "The `appendBuffer()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn append_buffer_with_array_buffer(
this: &SourceBuffer,
data: &::js_sys::ArrayBuffer,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer)]
#[doc = "The `appendBuffer()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn append_buffer_with_array_buffer_view(
this: &SourceBuffer,
data: &::js_sys::Object,
) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer)]
#[doc = "The `appendBuffer()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn append_buffer_with_u8_array(this: &SourceBuffer, data: &mut [u8])
-> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync)]
#[doc = "The `appendBufferAsync()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn append_buffer_async_with_array_buffer(
this: &SourceBuffer,
data: &::js_sys::ArrayBuffer,
) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync)]
#[doc = "The `appendBufferAsync()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn append_buffer_async_with_array_buffer_view(
this: &SourceBuffer,
data: &::js_sys::Object,
) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync)]
#[doc = "The `appendBufferAsync()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn append_buffer_async_with_u8_array(
this: &SourceBuffer,
data: &mut [u8],
) -> Result<::js_sys::Promise, JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = changeType)]
#[doc = "The `changeType()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/changeType)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn change_type(this: &SourceBuffer, type_: &str) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = remove)]
#[doc = "The `remove()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/remove)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn remove(this: &SourceBuffer, start: f64, end: f64) -> Result<(), JsValue>;
# [wasm_bindgen (catch , method , structural , js_class = "SourceBuffer" , js_name = removeAsync)]
#[doc = "The `removeAsync()` method."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/removeAsync)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"]
pub fn remove_async(
this: &SourceBuffer,
start: f64,
end: f64,
) -> Result<::js_sys::Promise, JsValue>;
}
|