File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,14 @@ impl API {
168
168
)
169
169
. await
170
170
}
171
+
172
+ pub fn setting_engine ( & self ) -> Arc < SettingEngine > {
173
+ Arc :: clone ( & self . setting_engine )
174
+ }
175
+
176
+ pub fn media_engine ( & self ) -> Arc < MediaEngine > {
177
+ Arc :: clone ( & self . media_engine )
178
+ }
171
179
}
172
180
173
181
#[ derive( Default ) ]
Original file line number Diff line number Diff line change @@ -2073,4 +2073,12 @@ impl RTCPeerConnection {
2073
2073
2074
2074
gathering_complete_rx
2075
2075
}
2076
+
2077
+ pub fn dtls_transport ( & self ) -> Arc < RTCDtlsTransport > {
2078
+ Arc :: clone ( & self . internal . dtls_transport )
2079
+ }
2080
+
2081
+ pub async fn add_transceiver ( & self , t : Arc < RTCRtpTransceiver > ) {
2082
+ self . internal . add_rtp_transceiver ( t) . await
2083
+ }
2076
2084
}
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ pub struct RTCRtpTransceiver {
192
192
}
193
193
194
194
impl RTCRtpTransceiver {
195
- pub ( crate ) async fn new (
195
+ pub async fn new (
196
196
receiver : Arc < RTCRtpReceiver > ,
197
197
sender : Arc < RTCRtpSender > ,
198
198
direction : RTCRtpTransceiverDirection ,
You can’t perform that action at this time.
0 commit comments