maxcountryman_web_sys/features/
gen_RtcRtpTransceiver.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = RTCRtpTransceiver , typescript_type = "RTCRtpTransceiver")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `RtcRtpTransceiver` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"]
13 pub type RtcRtpTransceiver;
14 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = mid)]
15 #[doc = "Getter for the `mid` field of this object."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/mid)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"]
20 pub fn mid(this: &RtcRtpTransceiver) -> Option<String>;
21 #[cfg(feature = "RtcRtpSender")]
22 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = sender)]
23 #[doc = "Getter for the `sender` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/sender)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`, `RtcRtpTransceiver`*"]
28 pub fn sender(this: &RtcRtpTransceiver) -> RtcRtpSender;
29 #[cfg(feature = "RtcRtpReceiver")]
30 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = receiver)]
31 #[doc = "Getter for the `receiver` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/receiver)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcRtpTransceiver`*"]
36 pub fn receiver(this: &RtcRtpTransceiver) -> RtcRtpReceiver;
37 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = stopped)]
38 #[doc = "Getter for the `stopped` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/stopped)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"]
43 pub fn stopped(this: &RtcRtpTransceiver) -> bool;
44 #[cfg(feature = "RtcRtpTransceiverDirection")]
45 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = direction)]
46 #[doc = "Getter for the `direction` field of this object."]
47 #[doc = ""]
48 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/direction)"]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"]
51 pub fn direction(this: &RtcRtpTransceiver) -> RtcRtpTransceiverDirection;
52 #[cfg(feature = "RtcRtpTransceiverDirection")]
53 # [wasm_bindgen (structural , method , setter , js_class = "RTCRtpTransceiver" , js_name = direction)]
54 #[doc = "Setter for the `direction` field of this object."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/direction)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"]
59 pub fn set_direction(this: &RtcRtpTransceiver, value: RtcRtpTransceiverDirection);
60 #[cfg(feature = "RtcRtpTransceiverDirection")]
61 # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = currentDirection)]
62 #[doc = "Getter for the `currentDirection` field of this object."]
63 #[doc = ""]
64 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/currentDirection)"]
65 #[doc = ""]
66 #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"]
67 pub fn current_direction(this: &RtcRtpTransceiver) -> Option<RtcRtpTransceiverDirection>;
68 # [wasm_bindgen (method , structural , js_class = "RTCRtpTransceiver" , js_name = getRemoteTrackId)]
69 #[doc = "The `getRemoteTrackId()` method."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/getRemoteTrackId)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"]
74 pub fn get_remote_track_id(this: &RtcRtpTransceiver) -> String;
75 # [wasm_bindgen (method , structural , js_class = "RTCRtpTransceiver" , js_name = stop)]
76 #[doc = "The `stop()` method."]
77 #[doc = ""]
78 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/stop)"]
79 #[doc = ""]
80 #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"]
81 pub fn stop(this: &RtcRtpTransceiver);
82}