1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpReceiver , typescript_type = "RTCRtpReceiver")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `RtcRtpReceiver` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] 13 pub type RtcRtpReceiver; 14 #[cfg(feature = "MediaStreamTrack")] 15 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpReceiver" , js_name = track)] 16 #[doc = "Getter for the `track` field of this object."] 17 #[doc = ""] 18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/track)"] 19 #[doc = ""] 20 #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpReceiver`*"] track(this: &RtcRtpReceiver) -> MediaStreamTrack21 pub fn track(this: &RtcRtpReceiver) -> MediaStreamTrack; 22 # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getContributingSources)] 23 #[doc = "The `getContributingSources()` method."] 24 #[doc = ""] 25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getContributingSources)"] 26 #[doc = ""] 27 #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] get_contributing_sources(this: &RtcRtpReceiver) -> ::js_sys::Array28 pub fn get_contributing_sources(this: &RtcRtpReceiver) -> ::js_sys::Array; 29 # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getStats)] 30 #[doc = "The `getStats()` method."] 31 #[doc = ""] 32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getStats)"] 33 #[doc = ""] 34 #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] get_stats(this: &RtcRtpReceiver) -> ::js_sys::Promise35 pub fn get_stats(this: &RtcRtpReceiver) -> ::js_sys::Promise; 36 # [wasm_bindgen (method , structural , js_class = "RTCRtpReceiver" , js_name = getSynchronizationSources)] 37 #[doc = "The `getSynchronizationSources()` method."] 38 #[doc = ""] 39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getSynchronizationSources)"] 40 #[doc = ""] 41 #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] get_synchronization_sources(this: &RtcRtpReceiver) -> ::js_sys::Array42 pub fn get_synchronization_sources(this: &RtcRtpReceiver) -> ::js_sys::Array; 43 } 44