Difference between revisions of "GstWebRTC - API Reference"
Jcaballero (talk | contribs) |
Jcaballero (talk | contribs) |
||
Line 8: | Line 8: | ||
Base class for custom signalers. <br> | Base class for custom signalers. <br> | ||
− | Members | + | ''Members'' |
;guint id | ;guint id | ||
:The ID of the local endpoint | :The ID of the local endpoint | ||
Line 33: | Line 33: | ||
==Virtual Functions== | ==Virtual Functions== | ||
− | The subclass must implement the following functions, these functions are called by the base class< | + | The subclass must implement the following functions, these functions are called by the base class. |
− | + | ===Connect=== | |
+ | <pre> | ||
+ | gboolean (*connect) (GstBaseSignaler *self) | ||
+ | <pre> | ||
<br> | <br> | ||
Connect to signaling from subclasses | Connect to signaling from subclasses |
Revision as of 13:41, 20 September 2017
← |
⌂ Home |
→ |
Contents
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
- 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
gboolean (*disconnect) (GstBaseSignaler *self)
Disconnect from signaling.
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 |