1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = RTCTrackEvent , typescript_type = "RTCTrackEvent")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `RtcTrackEvent` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `RtcTrackEvent`*"] 13 pub type RtcTrackEvent; 14 #[cfg(feature = "RtcRtpReceiver")] 15 # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = receiver)] 16 #[doc = "Getter for the `receiver` field of this object."] 17 #[doc = ""] 18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/receiver)"] 19 #[doc = ""] 20 #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcTrackEvent`*"] receiver(this: &RtcTrackEvent) -> RtcRtpReceiver21 pub fn receiver(this: &RtcTrackEvent) -> RtcRtpReceiver; 22 #[cfg(feature = "MediaStreamTrack")] 23 # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = track)] 24 #[doc = "Getter for the `track` field of this object."] 25 #[doc = ""] 26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/track)"] 27 #[doc = ""] 28 #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcTrackEvent`*"] track(this: &RtcTrackEvent) -> MediaStreamTrack29 pub fn track(this: &RtcTrackEvent) -> MediaStreamTrack; 30 # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = streams)] 31 #[doc = "Getter for the `streams` field of this object."] 32 #[doc = ""] 33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/streams)"] 34 #[doc = ""] 35 #[doc = "*This API requires the following crate features to be activated: `RtcTrackEvent`*"] streams(this: &RtcTrackEvent) -> ::js_sys::Array36 pub fn streams(this: &RtcTrackEvent) -> ::js_sys::Array; 37 #[cfg(feature = "RtcRtpTransceiver")] 38 # [wasm_bindgen (structural , method , getter , js_class = "RTCTrackEvent" , js_name = transceiver)] 39 #[doc = "Getter for the `transceiver` field of this object."] 40 #[doc = ""] 41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/transceiver)"] 42 #[doc = ""] 43 #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcTrackEvent`*"] transceiver(this: &RtcTrackEvent) -> RtcRtpTransceiver44 pub fn transceiver(this: &RtcTrackEvent) -> RtcRtpTransceiver; 45 #[cfg(feature = "RtcTrackEventInit")] 46 #[wasm_bindgen(catch, constructor, js_class = "RTCTrackEvent")] 47 #[doc = "The `new RtcTrackEvent(..)` constructor, creating a new instance of `RtcTrackEvent`."] 48 #[doc = ""] 49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/RTCTrackEvent)"] 50 #[doc = ""] 51 #[doc = "*This API requires the following crate features to be activated: `RtcTrackEvent`, `RtcTrackEventInit`*"] new(type_: &str, event_init_dict: &RtcTrackEventInit) -> Result<RtcTrackEvent, JsValue>52 pub fn new(type_: &str, event_init_dict: &RtcTrackEventInit) -> Result<RtcTrackEvent, JsValue>; 53 } 54