GstWebRTC.WebRTCICE¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/c |
Maximum port for local rtp port range. max-rtp-port must be >= min-rtp-port |
||
r/w/c |
Minimum port for local rtp port range. min-rtp-port must be <= max-rtp-port |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Add a local IP address to use for ICE candidate gathering. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
ice_connection_state |
r |
||
ice_gathering_state |
r |
||
max_rtp_port |
r |
||
min_rtp_port |
r |
||
parent |
r |
Class Details¶
- class GstWebRTC.WebRTCICE(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
New in version 1.22.
- add_candidate(stream, candidate, promise)¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStreamcandidate (
str) – The ICE candidatepromise (
Gst.PromiseorNone) – AGst.Promisefor task notifications
New in version 1.22.
- add_stream(session_id)¶
- Parameters:
session_id (
int) – The session id- Returns:
The
GstWebRTC.WebRTCICEStream, orNone- Return type:
New in version 1.22.
- add_turn_server(uri)¶
- Parameters:
uri (
str) – URI of the TURN server- Returns:
- Return type:
New in version 1.22.
- find_transport(stream, component)¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStreamcomponent (
GstWebRTC.WebRTCICEComponent) – TheGstWebRTC.WebRTCICEComponent
- Returns:
The
GstWebRTC.WebRTCICETransport, orNone- Return type:
New in version 1.22.
- gather_candidates(stream)¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStream- Returns:
- Return type:
New in version 1.22.
- get_http_proxy()¶
- 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.
- Return type:
New in version 1.22.
- get_is_controller()¶
-
New in version 1.22.
- get_local_candidates(stream)¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStream- Returns:
List of local candidates
- Return type:
New in version 1.22.
- get_remote_candidates(stream)¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStream- Returns:
List of remote candidates
- Return type:
New in version 1.22.
- get_selected_pair(stream)¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStream- Returns:
Falseon failure, otherwise local_stats remote_stats will be set- local_stats:
A pointer to
GstWebRTC.WebRTCICECandidateStatsfor local candidate- remote_stats:
pointer to
GstWebRTC.WebRTCICECandidateStatsfor remote candidate
- Return type:
(
bool, local_stats:GstWebRTC.WebRTCICECandidateStats, remote_stats:GstWebRTC.WebRTCICECandidateStats)
New in version 1.22.
- set_force_relay(force_relay)¶
-
New in version 1.22.
- set_http_proxy(uri)¶
- Parameters:
uri (
str) – URI of the HTTP proxy of the form http://[username:password@]hostname’:port [?alpn=<alpn>]’
Set HTTP Proxy to be used when connecting to TURN server.
New in version 1.22.
- set_is_controller(controller)¶
-
New in version 1.22.
- set_local_credentials(stream, ufrag, pwd)¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStreamufrag (
str) – ICE usernamepwd (
str) – ICE password
- Returns:
- Return type:
New in version 1.22.
- set_on_ice_candidate(func, *user_data)¶
- Parameters:
func (
GstWebRTC.WebRTCICEOnCandidateFunc) – TheGstWebRTC.WebRTCICEOnCandidateFunccallback functionuser_data (
objectorNone) – User data passed to the callback function
New in version 1.22.
- set_remote_credentials(stream, ufrag, pwd)¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStreamufrag (
str) – ICE usernamepwd (
str) – ICE password
- Returns:
- Return type:
New in version 1.22.
- set_tos(stream, tos)¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStreamtos (
int) – ToS to be set
New in version 1.22.
- do_add_candidate(stream, candidate, promise) virtual¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStreamcandidate (
str) – The ICE candidatepromise (
Gst.PromiseorNone) – AGst.Promisefor task notifications
New in version 1.22.
- do_add_stream(session_id) virtual¶
- Parameters:
session_id (
int) – The session id- Returns:
The
GstWebRTC.WebRTCICEStream, orNone- Return type:
New in version 1.22.
- do_add_turn_server(uri) virtual¶
- Parameters:
uri (
str) – URI of the TURN server- Returns:
- Return type:
New in version 1.22.
- do_find_transport(stream, component) virtual¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStreamcomponent (
GstWebRTC.WebRTCICEComponent) – TheGstWebRTC.WebRTCICEComponent
- Returns:
The
GstWebRTC.WebRTCICETransport, orNone- Return type:
New in version 1.22.
- do_gather_candidates(stream) virtual¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStream- Returns:
- Return type:
New in version 1.22.
- do_get_http_proxy() virtual¶
- 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.
- Return type:
Get HTTP Proxy to be used when connecting to TURN server.
New in version 1.22.
- do_get_is_controller() virtual¶
-
New in version 1.22.
- do_get_local_candidates(stream) virtual¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) –- Return type:
- do_get_remote_candidates(stream) virtual¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) –- Return type:
- do_get_selected_pair(stream) virtual¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStream- Returns:
Falseon failure, otherwise local_stats remote_stats will be set- local_stats:
A pointer to
GstWebRTC.WebRTCICECandidateStatsfor local candidate- remote_stats:
pointer to
GstWebRTC.WebRTCICECandidateStatsfor remote candidate
- Return type:
(
bool, local_stats:GstWebRTC.WebRTCICECandidateStats, remote_stats:GstWebRTC.WebRTCICECandidateStats)
New in version 1.22.
- do_get_stun_server() virtual¶
-
New in version 1.22.
- do_get_turn_server() virtual¶
-
New in version 1.22.
- do_set_force_relay(force_relay) virtual¶
-
New in version 1.22.
- do_set_http_proxy(uri) virtual¶
- Parameters:
uri (
str) – URI of the HTTP proxy of the form http://[username:password@]hostname’:port [?alpn=<alpn>]’
Set HTTP Proxy to be used when connecting to TURN server.
New in version 1.22.
- do_set_is_controller(controller) virtual¶
-
New in version 1.22.
- do_set_local_credentials(stream, ufrag, pwd) virtual¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStreamufrag (
str) – ICE usernamepwd (
str) – ICE password
- Returns:
- Return type:
New in version 1.22.
- do_set_on_ice_candidate(func, *user_data) virtual¶
- Parameters:
func (
GstWebRTC.WebRTCICEOnCandidateFunc) – TheGstWebRTC.WebRTCICEOnCandidateFunccallback functionuser_data (
objectorNone) – User data passed to the callback function
New in version 1.22.
- do_set_remote_credentials(stream, ufrag, pwd) virtual¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStreamufrag (
str) – ICE usernamepwd (
str) – ICE password
- Returns:
- Return type:
New in version 1.22.
- do_set_stun_server(uri) virtual¶
-
New in version 1.22.
- do_set_tos(stream, tos) virtual¶
- Parameters:
stream (
GstWebRTC.WebRTCICEStream) – TheGstWebRTC.WebRTCICEStreamtos (
int) – ToS to be set
New in version 1.22.
Signal Details¶
- GstWebRTC.WebRTCICE.signals.add_local_ip_address(web_r_t_c_i_c_e, address)¶
- Signal Name:
add-local-ip-address- Flags:
- Parameters:
web_r_t_c_i_c_e (
GstWebRTC.WebRTCICE) – The object which received the signaladdress (
str) – The local IP address
- Returns:
whether the address could be added.
- Return type:
Add a local IP address to use for ICE candidate gathering. If none are supplied, they will be discovered automatically. Calling this signal stops automatic ICE gathering.
Property Details¶
- GstWebRTC.WebRTCICE.props.max_rtp_port¶
-
Maximum port for local rtp port range. min-rtp-port must be <= max-rtp-port
New in version 1.20.