Trait gstreamer_webrtc::prelude::WebRTCICEExt
source · pub trait WebRTCICEExt: IsA<WebRTCICE> + Sealed + 'static {
Show 28 methods
// Provided methods
fn add_stream(&self, session_id: u32) -> Option<WebRTCICEStream> { ... }
fn add_turn_server(&self, uri: &str) -> bool { ... }
fn find_transport(
&self,
stream: &impl IsA<WebRTCICEStream>,
component: WebRTCICEComponent,
) -> Option<WebRTCICETransport> { ... }
fn gather_candidates(&self, stream: &impl IsA<WebRTCICEStream>) -> bool { ... }
fn http_proxy(&self) -> GString { ... }
fn is_controller(&self) -> bool { ... }
fn local_candidates(
&self,
stream: &impl IsA<WebRTCICEStream>,
) -> Vec<WebRTCICECandidateStats> { ... }
fn remote_candidates(
&self,
stream: &impl IsA<WebRTCICEStream>,
) -> Vec<WebRTCICECandidateStats> { ... }
fn selected_pair(
&self,
stream: &impl IsA<WebRTCICEStream>,
) -> Option<(WebRTCICECandidateStats, WebRTCICECandidateStats)> { ... }
fn stun_server(&self) -> Option<GString> { ... }
fn turn_server(&self) -> Option<GString> { ... }
fn set_force_relay(&self, force_relay: bool) { ... }
fn set_http_proxy(&self, uri: &str) { ... }
fn set_is_controller(&self, controller: bool) { ... }
fn set_local_credentials(
&self,
stream: &impl IsA<WebRTCICEStream>,
ufrag: &str,
pwd: &str,
) -> bool { ... }
fn set_on_ice_candidate<P: Fn(&WebRTCICE, u32, &str) + Send + Sync + 'static>(
&self,
func: P,
) { ... }
fn set_remote_credentials(
&self,
stream: &impl IsA<WebRTCICEStream>,
ufrag: &str,
pwd: &str,
) -> bool { ... }
fn set_stun_server(&self, uri: Option<&str>) { ... }
fn set_tos(&self, stream: &impl IsA<WebRTCICEStream>, tos: u32) { ... }
fn set_turn_server(&self, uri: Option<&str>) { ... }
fn max_rtp_port(&self) -> u32 { ... }
fn set_max_rtp_port(&self, max_rtp_port: u32) { ... }
fn min_rtp_port(&self) -> u32 { ... }
fn set_min_rtp_port(&self, min_rtp_port: u32) { ... }
fn connect_add_local_ip_address<F: Fn(&Self, &str) -> bool + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_add_local_ip_address(&self, address: &str) -> bool { ... }
fn connect_max_rtp_port_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_min_rtp_port_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Provided Methods§
sourcefn add_stream(&self, session_id: u32) -> Option<WebRTCICEStream>
fn add_stream(&self, session_id: u32) -> Option<WebRTCICEStream>
sourcefn add_turn_server(&self, uri: &str) -> bool
fn add_turn_server(&self, uri: &str) -> bool
sourcefn find_transport(
&self,
stream: &impl IsA<WebRTCICEStream>,
component: WebRTCICEComponent,
) -> Option<WebRTCICETransport>
fn find_transport( &self, stream: &impl IsA<WebRTCICEStream>, component: WebRTCICEComponent, ) -> Option<WebRTCICETransport>
sourcefn gather_candidates(&self, stream: &impl IsA<WebRTCICEStream>) -> bool
fn gather_candidates(&self, stream: &impl IsA<WebRTCICEStream>) -> bool
sourcefn http_proxy(&self) -> GString
fn http_proxy(&self) -> GString
§Returns
URI of the HTTP proxy of the form
http://[username:password@]hostname[:port][?alpn=<alpn>
]
Get HTTP Proxy to be used when connecting to TURN server.
sourcefn is_controller(&self) -> bool
fn is_controller(&self) -> bool
§Returns
TRUE if set as controller, FALSE otherwise
sourcefn local_candidates(
&self,
stream: &impl IsA<WebRTCICEStream>,
) -> Vec<WebRTCICECandidateStats>
fn local_candidates( &self, stream: &impl IsA<WebRTCICEStream>, ) -> Vec<WebRTCICECandidateStats>
sourcefn remote_candidates(
&self,
stream: &impl IsA<WebRTCICEStream>,
) -> Vec<WebRTCICECandidateStats>
fn remote_candidates( &self, stream: &impl IsA<WebRTCICEStream>, ) -> Vec<WebRTCICECandidateStats>
sourcefn selected_pair(
&self,
stream: &impl IsA<WebRTCICEStream>,
) -> Option<(WebRTCICECandidateStats, WebRTCICECandidateStats)>
fn selected_pair( &self, stream: &impl IsA<WebRTCICEStream>, ) -> Option<(WebRTCICECandidateStats, WebRTCICECandidateStats)>
§stream
The WebRTCICEStream
§Returns
FALSE on failure, otherwise local_stats
remote_stats
will be set
§local_stats
A pointer to WebRTCICECandidateStats
for local candidate
§remote_stats
pointer to WebRTCICECandidateStats
for remote candidate
sourcefn stun_server(&self) -> Option<GString>
fn stun_server(&self) -> Option<GString>
§Returns
URI of the STUN sever
sourcefn turn_server(&self) -> Option<GString>
fn turn_server(&self) -> Option<GString>
§Returns
URI of the TURN sever
sourcefn set_force_relay(&self, force_relay: bool)
fn set_force_relay(&self, force_relay: bool)
§force_relay
TRUE to enable force relay
sourcefn set_http_proxy(&self, uri: &str)
fn set_http_proxy(&self, uri: &str)
Set HTTP Proxy to be used when connecting to TURN server.
§uri
URI of the HTTP proxy of the form
http://[username:password@]hostname[:port][?alpn=<alpn>
]
sourcefn set_is_controller(&self, controller: bool)
fn set_is_controller(&self, controller: bool)
§controller
TRUE to set as controller
sourcefn set_local_credentials(
&self,
stream: &impl IsA<WebRTCICEStream>,
ufrag: &str,
pwd: &str,
) -> bool
fn set_local_credentials( &self, stream: &impl IsA<WebRTCICEStream>, ufrag: &str, pwd: &str, ) -> bool
§stream
The WebRTCICEStream
§ufrag
ICE username
§pwd
ICE password
§Returns
FALSE on error, TRUE otherwise
sourcefn set_on_ice_candidate<P: Fn(&WebRTCICE, u32, &str) + Send + Sync + 'static>(
&self,
func: P,
)
fn set_on_ice_candidate<P: Fn(&WebRTCICE, u32, &str) + Send + Sync + 'static>( &self, func: P, )
sourcefn set_remote_credentials(
&self,
stream: &impl IsA<WebRTCICEStream>,
ufrag: &str,
pwd: &str,
) -> bool
fn set_remote_credentials( &self, stream: &impl IsA<WebRTCICEStream>, ufrag: &str, pwd: &str, ) -> bool
§stream
The WebRTCICEStream
§ufrag
ICE username
§pwd
ICE password
§Returns
FALSE on error, TRUE otherwise
sourcefn set_stun_server(&self, uri: Option<&str>)
fn set_stun_server(&self, uri: Option<&str>)
§uri
URI of the STUN server
sourcefn set_tos(&self, stream: &impl IsA<WebRTCICEStream>, tos: u32)
fn set_tos(&self, stream: &impl IsA<WebRTCICEStream>, tos: u32)
sourcefn set_turn_server(&self, uri: Option<&str>)
fn set_turn_server(&self, uri: Option<&str>)
§uri
URI of the TURN sever
sourcefn max_rtp_port(&self) -> u32
fn max_rtp_port(&self) -> u32
Maximum port for local rtp port range. min-rtp-port must be <= max-rtp-port
sourcefn set_max_rtp_port(&self, max_rtp_port: u32)
fn set_max_rtp_port(&self, max_rtp_port: u32)
Maximum port for local rtp port range. min-rtp-port must be <= max-rtp-port
sourcefn min_rtp_port(&self) -> u32
fn min_rtp_port(&self) -> u32
Minimum port for local rtp port range. min-rtp-port must be <= max-rtp-port
sourcefn set_min_rtp_port(&self, min_rtp_port: u32)
fn set_min_rtp_port(&self, min_rtp_port: u32)
Minimum port for local rtp port range. min-rtp-port must be <= max-rtp-port