Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WebCodecs to 2024-12-12 and MediaRecorder to 2024-10-31 #4411

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* Deprecate async constructors.
[#4402](https://github.com/rustwasm/wasm-bindgen/pull/4402)

* Update Update WebCodecs to 2024-12-12 and MediaRecorder to 2024-10-31.
[#4411](https://github.com/rustwasm/wasm-bindgen/pull/4411)

--------------------------------------------------------------------------------

## [0.2.100](https://github.com/rustwasm/wasm-bindgen/compare/0.2.99...0.2.100)
Expand Down
11 changes: 7 additions & 4 deletions crates/web-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ AudioContextState = []
AudioData = []
AudioDataCopyToOptions = []
AudioDataInit = []
AudioDecoder = []
AudioDecoder = ["EventTarget"]
AudioDecoderConfig = []
AudioDecoderInit = []
AudioDecoderSupport = []
AudioDestinationNode = ["AudioNode", "EventTarget"]
AudioEncoder = []
AudioEncoder = ["EventTarget"]
AudioEncoderConfig = []
AudioEncoderInit = []
AudioEncoderSupport = []
Expand Down Expand Up @@ -152,6 +152,7 @@ BinaryType = []
BiquadFilterNode = ["AudioNode", "EventTarget"]
BiquadFilterOptions = []
BiquadFilterType = []
BitrateMode = []
Blob = []
BlobEvent = ["Event"]
BlobEventInit = []
Expand Down Expand Up @@ -1519,11 +1520,12 @@ VideoColorPrimaries = []
VideoColorSpace = []
VideoColorSpaceInit = []
VideoConfiguration = []
VideoDecoder = []
VideoDecoder = ["EventTarget"]
VideoDecoderConfig = []
VideoDecoderInit = []
VideoDecoderSupport = []
VideoEncoder = []
VideoEncoder = ["EventTarget"]
VideoEncoderBitrateMode = []
VideoEncoderConfig = []
VideoEncoderEncodeOptions = []
VideoEncoderInit = []
Expand All @@ -1533,6 +1535,7 @@ VideoFrame = []
VideoFrameBufferInit = []
VideoFrameCopyToOptions = []
VideoFrameInit = []
VideoFrameMetadata = []
VideoMatrixCoefficients = []
VideoPixelFormat = []
VideoPlaybackQuality = []
Expand Down
24 changes: 24 additions & 0 deletions crates/web-sys/src/features/gen_AudioDataInit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,24 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "timestamp")]
pub fn set_timestamp(this: &AudioDataInit, val: f64);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `transfer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "transfer")]
pub fn get_transfer(this: &AudioDataInit) -> Option<::js_sys::Array>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `transfer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDataInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "transfer")]
pub fn set_transfer(this: &AudioDataInit, val: &::wasm_bindgen::JsValue);
}
#[cfg(web_sys_unstable_apis)]
impl AudioDataInit {
Expand Down Expand Up @@ -189,4 +207,10 @@ impl AudioDataInit {
self.set_timestamp(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_transfer()` instead."]
pub fn transfer(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_transfer(val);
self
}
}
24 changes: 23 additions & 1 deletion crates/web-sys/src/features/gen_AudioDecoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioDecoder , typescript_type = "AudioDecoder")]
# [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioDecoder , typescript_type = "AudioDecoder")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioDecoder` class."]
#[doc = ""]
Expand Down Expand Up @@ -40,6 +40,28 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn decode_queue_size(this: &AudioDecoder) -> u32;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AudioDecoder" , js_name = ondequeue)]
#[doc = "Getter for the `ondequeue` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/ondequeue)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn ondequeue(this: &AudioDecoder) -> Option<::js_sys::Function>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , setter , js_class = "AudioDecoder" , js_name = ondequeue)]
#[doc = "Setter for the `ondequeue` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDecoder/ondequeue)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioDecoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn set_ondequeue(this: &AudioDecoder, value: Option<&::js_sys::Function>);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioDecoderInit")]
#[wasm_bindgen(catch, constructor, js_class = "AudioDecoder")]
#[doc = "The `new AudioDecoder(..)` constructor, creating a new instance of `AudioDecoder`."]
Expand Down
24 changes: 23 additions & 1 deletion crates/web-sys/src/features/gen_AudioEncoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use wasm_bindgen::prelude::*;
#[cfg(web_sys_unstable_apis)]
#[wasm_bindgen]
extern "C" {
# [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioEncoder , typescript_type = "AudioEncoder")]
# [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioEncoder , typescript_type = "AudioEncoder")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `AudioEncoder` class."]
#[doc = ""]
Expand Down Expand Up @@ -40,6 +40,28 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn encode_queue_size(this: &AudioEncoder) -> u32;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "AudioEncoder" , js_name = ondequeue)]
#[doc = "Getter for the `ondequeue` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/ondequeue)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn ondequeue(this: &AudioEncoder) -> Option<::js_sys::Function>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , setter , js_class = "AudioEncoder" , js_name = ondequeue)]
#[doc = "Setter for the `ondequeue` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/ondequeue)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoder`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn set_ondequeue(this: &AudioEncoder, value: Option<&::js_sys::Function>);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "AudioEncoderInit")]
#[wasm_bindgen(catch, constructor, js_class = "AudioEncoder")]
#[doc = "The `new AudioEncoder(..)` constructor, creating a new instance of `AudioEncoder`."]
Expand Down
27 changes: 27 additions & 0 deletions crates/web-sys/src/features/gen_AudioEncoderConfig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,26 @@ extern "C" {
#[wasm_bindgen(method, setter = "bitrate")]
pub fn set_bitrate(this: &AudioEncoderConfig, val: f64);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "BitrateMode")]
#[doc = "Get the `bitrateMode` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`, `BitrateMode`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "bitrateMode")]
pub fn get_bitrate_mode(this: &AudioEncoderConfig) -> Option<BitrateMode>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "BitrateMode")]
#[doc = "Change the `bitrateMode` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`, `BitrateMode`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "bitrateMode")]
pub fn set_bitrate_mode(this: &AudioEncoderConfig, val: BitrateMode);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `codec` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `AudioEncoderConfig`*"]
Expand Down Expand Up @@ -108,6 +128,13 @@ impl AudioEncoderConfig {
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "BitrateMode")]
#[deprecated = "Use `set_bitrate_mode()` instead."]
pub fn bitrate_mode(&mut self, val: BitrateMode) -> &mut Self {
self.set_bitrate_mode(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_codec()` instead."]
pub fn codec(&mut self, val: &str) -> &mut Self {
self.set_codec(val);
Expand Down
12 changes: 12 additions & 0 deletions crates/web-sys/src/features/gen_BitrateMode.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#![allow(unused_imports)]
#![allow(clippy::all)]
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
#[doc = "The `BitrateMode` enum."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `BitrateMode`*"]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum BitrateMode {
Constant = "constant",
Variable = "variable",
}
24 changes: 24 additions & 0 deletions crates/web-sys/src/features/gen_EncodedAudioChunkInit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,24 @@ extern "C" {
#[wasm_bindgen(method, setter = "timestamp")]
pub fn set_timestamp(this: &EncodedAudioChunkInit, val: f64);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `transfer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "transfer")]
pub fn get_transfer(this: &EncodedAudioChunkInit) -> Option<::js_sys::Array>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `transfer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EncodedAudioChunkInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "transfer")]
pub fn set_transfer(this: &EncodedAudioChunkInit, val: &::wasm_bindgen::JsValue);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "EncodedAudioChunkType")]
#[doc = "Get the `type` field of this object."]
#[doc = ""]
Expand Down Expand Up @@ -125,6 +143,12 @@ impl EncodedAudioChunkInit {
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_transfer()` instead."]
pub fn transfer(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_transfer(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "EncodedAudioChunkType")]
#[deprecated = "Use `set_type()` instead."]
pub fn type_(&mut self, val: EncodedAudioChunkType) -> &mut Self {
Expand Down
24 changes: 24 additions & 0 deletions crates/web-sys/src/features/gen_EncodedVideoChunkInit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,24 @@ extern "C" {
#[wasm_bindgen(method, setter = "timestamp")]
pub fn set_timestamp(this: &EncodedVideoChunkInit, val: f64);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `transfer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "transfer")]
pub fn get_transfer(this: &EncodedVideoChunkInit) -> Option<::js_sys::Array>;
#[cfg(web_sys_unstable_apis)]
#[doc = "Change the `transfer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `EncodedVideoChunkInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "transfer")]
pub fn set_transfer(this: &EncodedVideoChunkInit, val: &::wasm_bindgen::JsValue);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "EncodedVideoChunkType")]
#[doc = "Get the `type` field of this object."]
#[doc = ""]
Expand Down Expand Up @@ -125,6 +143,12 @@ impl EncodedVideoChunkInit {
self
}
#[cfg(web_sys_unstable_apis)]
#[deprecated = "Use `set_transfer()` instead."]
pub fn transfer(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_transfer(val);
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "EncodedVideoChunkType")]
#[deprecated = "Use `set_type()` instead."]
pub fn type_(&mut self, val: EncodedVideoChunkType) -> &mut Self {
Expand Down
25 changes: 11 additions & 14 deletions crates/web-sys/src/features/gen_ImageDecoderInit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,25 +107,23 @@ extern "C" {
#[wasm_bindgen(method, setter = "preferAnimation")]
pub fn set_prefer_animation(this: &ImageDecoderInit, val: bool);
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "PremultiplyAlpha")]
#[doc = "Get the `premultiplyAlpha` field of this object."]
#[doc = "Get the `transfer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`, `PremultiplyAlpha`*"]
#[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, getter = "premultiplyAlpha")]
pub fn get_premultiply_alpha(this: &ImageDecoderInit) -> Option<PremultiplyAlpha>;
#[wasm_bindgen(method, getter = "transfer")]
pub fn get_transfer(this: &ImageDecoderInit) -> Option<::js_sys::Array>;
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "PremultiplyAlpha")]
#[doc = "Change the `premultiplyAlpha` field of this object."]
#[doc = "Change the `transfer` field of this object."]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`, `PremultiplyAlpha`*"]
#[doc = "*This API requires the following crate features to be activated: `ImageDecoderInit`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
#[wasm_bindgen(method, setter = "premultiplyAlpha")]
pub fn set_premultiply_alpha(this: &ImageDecoderInit, val: PremultiplyAlpha);
#[wasm_bindgen(method, setter = "transfer")]
pub fn set_transfer(this: &ImageDecoderInit, val: &::wasm_bindgen::JsValue);
#[cfg(web_sys_unstable_apis)]
#[doc = "Get the `type` field of this object."]
#[doc = ""]
Expand Down Expand Up @@ -192,10 +190,9 @@ impl ImageDecoderInit {
self
}
#[cfg(web_sys_unstable_apis)]
#[cfg(feature = "PremultiplyAlpha")]
#[deprecated = "Use `set_premultiply_alpha()` instead."]
pub fn premultiply_alpha(&mut self, val: PremultiplyAlpha) -> &mut Self {
self.set_premultiply_alpha(val);
#[deprecated = "Use `set_transfer()` instead."]
pub fn transfer(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
self.set_transfer(val);
self
}
#[cfg(web_sys_unstable_apis)]
Expand Down
22 changes: 0 additions & 22 deletions crates/web-sys/src/features/gen_ImageTrack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,28 +50,6 @@ extern "C" {
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn repetition_count(this: &ImageTrack) -> f32;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , js_name = onchange)]
#[doc = "Getter for the `onchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/onchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ImageTrack`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn onchange(this: &ImageTrack) -> Option<::js_sys::Function>;
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , setter , js_class = "ImageTrack" , js_name = onchange)]
#[doc = "Setter for the `onchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageTrack/onchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `ImageTrack`*"]
#[doc = ""]
#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
pub fn set_onchange(this: &ImageTrack, value: Option<&::js_sys::Function>);
#[cfg(web_sys_unstable_apis)]
# [wasm_bindgen (structural , method , getter , js_class = "ImageTrack" , js_name = selected)]
#[doc = "Getter for the `selected` field of this object."]
#[doc = ""]
Expand Down
Loading
Loading