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

From RidgeRun Developer Connection
Jump to: navigation, search
(Add datachannel)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{GStreamer WebRTC Wrapper/Head|next=Evaluating_GstWebRTCWrapper|previous=Architecture/GstWebRTCWrapperBin_XirsysIceServer|keywords=}}
+
{{GStreamer WebRTC Wrapper/Head|next=Evaluating_GstWebRTCWrapper|previous=Architecture/GstWebRTCWrapperBin_DataChannel|metakeywords=}}
 
</noinclude>
 
</noinclude>
  
Line 7: Line 7:
 
===GstOwrSignalerClass===
 
===GstOwrSignalerClass===
  
This module handles the signaling mechanism to negotiate.
+
This module handles the signaling mechanism to negotiate. This class is based on GstBaseSignaler class.
  
 
==== Methods ====
 
==== Methods ====
Line 13: Line 13:
 
* '''connect(GstBaseSignaler * parent)''': Connect to signaling server.
 
* '''connect(GstBaseSignaler * parent)''': Connect to signaling server.
 
* '''disconnect(GstBaseSignaler * parent)''': Disconnect from signaling server.
 
* '''disconnect(GstBaseSignaler * parent)''': Disconnect from signaling server.
* '''is_connected(GstBaseSignaler * parent)''': Check whether there is a connection to signaling server.
+
* '''is_connect(GstBaseSignaler * parent)''': Check whether there is a connection to signaling server.
 
* '''send_local_description(GstBaseSignaler * parent, gchar * local_description, GstWebRTCSDPType type)''': Send the local description through signaling.
 
* '''send_local_description(GstBaseSignaler * parent, gchar * local_description, GstWebRTCSDPType type)''': Send the local description through signaling.
 
* '''send_candidate(GstBaseSignaler * parent, const gchar * mid, gint sdp_mline_index, gchar * candidate)''': Send the candidate through signaling.
 
* '''send_candidate(GstBaseSignaler * parent, const gchar * mid, gint sdp_mline_index, gchar * candidate)''': Send the candidate through signaling.
* '''gst_owr_signaler_set_property(GObject * object, guint property_id, const GValue * value, GParamSpec * pspec)''': ADD DESCRIPTION.
 
* '''gst_owr_signaler_get_property(GObject * object, guint property_id, const GValue * value, GParamSpec * pspec)''': ADD DESCRIPTION.
 
* '''gst_owr_signaler_clean_soup_session(GstOwrSignaler * owr)''': Check if Data Stream is running and destroy libsoup resources.
 
* '''gst_owr_signaler_get_property()''': ADD DESCRIPTION.
 
 
  
 
==== Signals ====
 
==== Signals ====
Line 30: Line 25:
 
*  ''signaler-notify'': Emitted when any notification needs to be sent to the bus.
 
*  ''signaler-notify'': Emitted when any notification needs to be sent to the bus.
 
*  ''error-connection'': Emitted when the signaler has an error in one of the methods.
 
*  ''error-connection'': Emitted when the signaler has an error in one of the methods.
 
==== Detailed methods ====
 
 
=====connect=====
 
 
<pre>
 
connect(GstBaseSignaler * self)
 
</pre>
 
;Parameters
 
:''self:'' The concrete signaler
 
;Returns
 
:True if connection was successful.
 
 
=====is_connect=====
 
 
<pre>
 
is_connect(GstBaseSignaler * self)
 
</pre>
 
;Parameters
 
:''self:'' The concrete signaler
 
;Returns
 
:True if the signaler is connected.
 
 
=====disconnect=====
 
 
<pre>
 
disconnect(GstBaseSignaler * self)
 
</pre>
 
;Parameters
 
:''self:'' The concrete signaler.
 
;Returns
 
:True if disconnection was successful.
 
 
=====send_local_description=====
 
 
<pre>
 
send_local_description(GstBaseSignaler * self, gchar * description, GstWebRTCSDPType type)
 
</pre>
 
;Parameters
 
:''self:'' The concrete signaler.
 
:''description:'' The local description SDP to send.
 
:''type:'' SDP type offer/answer.
 
;Returns
 
:gboolean -> True or False if sending operation was successful.
 
 
=====send_candidate=====
 
 
<pre>
 
send_candidate(GstBaseSignaler * self, const gchar * mid, gint sdpmlineindex, gchar * candidate)
 
</pre>
 
;Parameters
 
:''self:'' The concrete signaler.
 
:''mid:'' Mid of the media description this candidate is associated with.
 
:''sdpmlineindex:''Index of the media description this candidate is associated with.
 
:''candidate:'' The standalone candidate to add.
 
;Returns
 
:gboolean -> True or False if sending operation was successful.
 
  
  
<noinclude>{{GStreamer WebRTC Wrapper/Foot|Architecture/GstWebRTCWrapperBin_XirsysIceServer|Evaluating_GstWebRTCWrapper}}</noinclude>
+
<noinclude>{{GStreamer WebRTC Wrapper/Foot|Architecture/GstWebRTCWrapperBin_DataChannel|Evaluating_GstWebRTCWrapper}}</noinclude>
  
 
[[Category:GStreamer WebRTC Wrapper]]
 
[[Category:GStreamer WebRTC Wrapper]]

Latest revision as of 15:14, 7 July 2023




Previous: Architecture/GstWebRTCWrapperBin_DataChannel Index Next: Evaluating_GstWebRTCWrapper




OWRSignaler

GstOwrSignalerClass

This module handles the signaling mechanism to negotiate. This class is based on GstBaseSignaler class.

Methods

  • connect(GstBaseSignaler * parent): Connect to signaling server.
  • disconnect(GstBaseSignaler * parent): Disconnect from signaling server.
  • is_connect(GstBaseSignaler * parent): Check whether there is a connection to signaling server.
  • send_local_description(GstBaseSignaler * parent, gchar * local_description, GstWebRTCSDPType type): Send the local description through signaling.
  • send_candidate(GstBaseSignaler * parent, const gchar * mid, gint sdp_mline_index, gchar * candidate): Send the candidate through signaling.

Signals

  • connected: Emitted when a peer is connected to the same session.
  • disconnected: Emitted when the peer is disconnected from the session.
  • add-remote-description: Emitted when a description arrives.
  • add-candidate: Emitted when a candidate arrives.
  • signaler-notify: Emitted when any notification needs to be sent to the bus.
  • error-connection: Emitted when the signaler has an error in one of the methods.


Previous: Architecture/GstWebRTCWrapperBin_DataChannel Index Next: Evaluating_GstWebRTCWrapper