Difference between revisions of "GStreamer WebRTC Wrapper/Architecture/GstWebRTCWrapperBin Modules"

From RidgeRun Developer Connection
Jump to: navigation, search
Line 107: Line 107:
 
* '''get_stun_servers()''': Returns the list of STUN servers.
 
* '''get_stun_servers()''': Returns the list of STUN servers.
 
* '''get_turn_servers()''': Returns the list of TURN servers.
 
* '''get_turn_servers()''': Returns the list of TURN servers.
 +
 +
<noinclude>{{GStreamer WebRTC Wrapper/Foot|Architecture|Getting_the_Codes}}</noinclude>
  
 
[[Category:GStreamer WebRTC Wrapper]]
 
[[Category:GStreamer WebRTC Wrapper]]

Revision as of 14:54, 20 January 2020




Previous: Architecture Index Next: Getting_the_Code




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.

GstWebWrapper arch.png
Figure 2. GstWebRTCWrapperbin module diagram.

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.


Previous: Architecture Index Next: Getting_the_Codes