GstWebRTC - API Reference

From RidgeRun Developer Wiki
Revision as of 18:45, 20 September 2017 by Jcaballero (talk | contribs)

Custom Signalers


Home

Plugin Elements



Classes, Structs and Enums

GstBaseSignaler Class

Base class for custom signalers.

Members

guint id
The ID of the local endpoint
gchar *peer_id
The ID of the remote endpoint
gboolean peer_connected
True if peer is connected
GstSDPMessage *peer_sdp
GstBaseSignalerSdpType type

GstBaseSignalerSdpType

GST_BASE_SIGNALER_SDP_OFFER
GST_BASE_SIGNALER_SDP_ANSWER
GST_BASE_SIGNALER_SDP_UNKNOWN

Virtual Functions

The subclass must implement the following functions, these functions are called by the base class.

Connect

gboolean  (*connect) (GstBaseSignaler *self)

Connect to signaling from subclasses.

Parameters
GstBaseSignaler: The base class
Returns
True if connection was successful.

Disconnect

Disconnect from signaling.

gboolean  (*disconnect) (GstBaseSignaler *self)
Parameters
GstBaseSignaler: The base class
Returns
True if disconnection was successful.

gboolean (*send_sdp) (GstBaseSignaler *self, GstSDPMessage *sdp, GstBaseSignalerSdpType type)
Send sdp to the signaling.

gboolean (*send_candidates) (GstBaseSignaler *self, GstSDPMessage *candidates)
Send candidates to the signaling.


Signals

The following signals must be emitted by the subclass:
void (*signaling_bound) (GstBaseSignaler *self)

void (*peer_connected) (GstBaseSignaler *self)

void (*peer_disconnected) (GstBaseSignaler *self)

void (*peer_sdp) (GstBaseSignaler *self, GstBaseSignalerSdpType * type, GstSDPMessage * sdp)

void (*peer_candidate) (GstBaseSignaler *self, gint sdp_index, gchar * sdp)

void (*signaling_error) (GstBaseSignaler *self)



Custom Signalers


Home

Plugin Elements