GstWebRTC - API Reference: Difference between revisions
Jcaballero (talk | contribs) No edit summary |
Jcaballero (talk | contribs) No edit summary |
||
Line 33: | Line 33: | ||
==Signals== | ===Signals=== | ||
The following signals must be emitted by the subclass: | The following signals must be emitted by the subclass: | ||
void (*signaling_bound) (GstBaseSignaler *self); | void (*signaling_bound) (GstBaseSignaler *self); |
Revision as of 18:15, 20 September 2017
← |
⌂ Home |
→ |
GstBaseSignaler Class
Base class for custom signalers.
GObject parent; guint id; gchar *peer_id; gboolean peer_connected; GstSDPMessage *peer_sdp; GstBaseSignalerSdpType type;
SDP Types
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
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);
← |
⌂ Home |
→ |