GStreamer WebRTC Wrapper - Architecture - GstWebRTCWrapperBin Modules
GStreamer WebRTC Wrapper |
---|
Introduction |
Architecture |
|
Evaluating GstWebRTCWrapper |
Getting the Code |
GStreamer Pipelines |
Other WebRTC RidgeRun products |
Contact Us |
GstWebrtc Wrapper Modules
This section describes the modules which will include as part of GstWebrtcWrapperbin Element. The modules correspond to the blocks in the Figure 2.
GstWebRTCBin
It is the GStreamer Element for WebRTC protocol development for GStreamer Team.
Properties
- start-call: The endpoint sends the local description as offer
- ice-server: Set the ice server mechanism.
- signaler: Set the signaling mechanism for negotiation.
WebRTC State Machine
The module to control the negotiation procedure during the WebRTC connection.
Method
- current_state(): Get current state
- next_state(): Move to next state.
Signal
- on-change-state : Emitted afterchanging a new state.
BaseSignaler
The module to handle the signaling mechanism to negotiate.
Methods
- init(): Initial configuration for BaseSignalerClass.
- open_connection(): open the signaling connection.
- send_local_description(): Send the local description through signaling.
- send_candidate(): Send the candidate through signaling.
- send_custom_message(): Send a custom message through signaling.
- close_connection(): close the signaling connection.
Signals
- on-add-candidate: Emitted after receiving a candidate.
- on-add-remote-description: Emitted after receiving the remote description
- on-close-connection: Emitted after receiving close message.
- on-error-connection: Emitted after receiving an error message.
BaseIceServers
The module to handle the ice serving mechanisms.
Methods
- get_stun_servers(): Returns the list of STUN servers.
- get_turn_servers(): Returns the list of TURN servers.
PubnubSignaler
The module to handle the PubNub resources for messaging. This class is based on GstBaseSignaler class.
Properties
- peer-channel: The peer chaneel to call.
- user-channel: The user channel identification.
- publish-key': Autentification Key to publish message on PubNub.
- subscribe-key: Autentification Key to subscribe message from PubNub.
- pubnub-server: PubNub Server URL
Methods
- init(): Initial configuration for BaseSignalerClass.
- open_connection(): open the signaling connection.
- send_local_description(): Send the local description through signaling.
- send_candidate(): Send the candidate through signaling.
- send_custom_message(): Send a custom message through signaling.
- close_connection(): close the signaling connection.
Signals
- on-add-candidate: Emitted after receiving a candidate.
- on-add-remote-description: Emitted after receiving the remote description
- on-close-connection: Emitted after receiving close message.
- on-error-connection: Emitted after receiving an error message.
XirsysIceServer
The module to handle the ice serving for Xirsys CoTURN. This class is based on GstXirsysIceServer.
Properties
- ident: Ident provided via Xirsys Account.
- secret: Secret provided via Xirsys Account
- channel': Channel provided via Xirsys Account
- xirsys_path: Xirsys path provided via Xirsys Account
Methods
- get_stun_servers(): Returns the list of STUN servers.
- get_turn_servers(): Returns the list of TURN servers.