WockyJingleContent

WockyJingleContent

Functions

void wocky_jingle_content_parse_add ()
void wocky_jingle_content_update_senders ()
void wocky_jingle_content_produce_node ()
void wocky_jingle_content_parse_accept ()
void wocky_jingle_content_parse_info ()
void wocky_jingle_content_parse_transport_info ()
void wocky_jingle_content_parse_description_info ()
guint wocky_jingle_content_create_share_channel ()
void wocky_jingle_content_add_candidates ()
gboolean wocky_jingle_content_is_ready ()
void wocky_jingle_content_set_transport_state ()
void wocky_jingle_content_remove ()
void wocky_jingle_content_reject ()
GList * wocky_jingle_content_get_remote_candidates ()
GList * wocky_jingle_content_get_local_candidates ()
gboolean wocky_jingle_content_get_credentials ()
gboolean wocky_jingle_content_change_direction ()
void wocky_jingle_content_retransmit_candidates ()
void wocky_jingle_content_inject_candidates ()
gboolean wocky_jingle_content_is_created_by_us ()
gboolean wocky_jingle_content_creator_is_initiator ()
const gchar * wocky_jingle_content_get_name ()
const gchar * wocky_jingle_content_get_ns ()
const gchar * wocky_jingle_content_get_disposition ()
WockyJingleTransportType wocky_jingle_content_get_transport_type ()
const gchar * wocky_jingle_content_get_transport_ns ()
void wocky_jingle_content_maybe_send_description ()
gboolean wocky_jingle_content_sending ()
gboolean wocky_jingle_content_receiving ()
void wocky_jingle_content_set_sending ()
void wocky_jingle_content_request_receiving ()
void wocky_jingle_content_send_complete ()

Properties

gchar * content-ns Read / Write
gchar * disposition Read / Write
gboolean locally-created Read
gchar * name Read / Write / Construct Only
guint senders Read / Write
WockyJingleSession * session Read / Write / Construct Only
guint state Read / Write
gchar * transport-ns Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── WockyJingleContent
        ╰── WockyJingleMediaRtp

Description

Functions

wocky_jingle_content_parse_add ()

void
wocky_jingle_content_parse_add (WockyJingleContent *c,
                                WockyNode *content_node,
                                gboolean google_mode,
                                GError **error);

wocky_jingle_content_update_senders ()

void
wocky_jingle_content_update_senders (WockyJingleContent *c,
                                     WockyNode *content_node,
                                     GError **error);

wocky_jingle_content_produce_node ()

void
wocky_jingle_content_produce_node (WockyJingleContent *c,
                                   WockyNode *parent,
                                   gboolean include_description,
                                   gboolean include_transport,
                                   WockyNode **trans_node_out);

wocky_jingle_content_parse_accept ()

void
wocky_jingle_content_parse_accept (WockyJingleContent *c,
                                   WockyNode *content_node,
                                   gboolean google_mode,
                                   GError **error);

wocky_jingle_content_parse_info ()

void
wocky_jingle_content_parse_info (WockyJingleContent *c,
                                 WockyNode *content_node,
                                 GError **error);

wocky_jingle_content_parse_transport_info ()

void
wocky_jingle_content_parse_transport_info
                               (WockyJingleContent *self,
                                WockyNode *trans_node,
                                GError **error);

wocky_jingle_content_parse_description_info ()

void
wocky_jingle_content_parse_description_info
                               (WockyJingleContent *self,
                                WockyNode *trans_node,
                                GError **error);

wocky_jingle_content_create_share_channel ()

guint
wocky_jingle_content_create_share_channel
                               (WockyJingleContent *self,
                                const gchar *name);

wocky_jingle_content_add_candidates ()

void
wocky_jingle_content_add_candidates (WockyJingleContent *self,
                                     GList *li);

Adds the candidates listed in li to the content, communicating them to the peer if appropriate.

Parameters

self

the content

 

li

a list of WockyJingleCandidate structs, allocated with wocky_jingle_candidate_new().

[element-type WockyJingleCandidate][transfer full]

wocky_jingle_content_is_ready ()

gboolean
wocky_jingle_content_is_ready (WockyJingleContent *self);

wocky_jingle_content_set_transport_state ()

void
wocky_jingle_content_set_transport_state
                               (WockyJingleContent *content,
                                WockyJingleTransportState state);

wocky_jingle_content_remove ()

void
wocky_jingle_content_remove (WockyJingleContent *c,
                             gboolean signal_peer);

wocky_jingle_content_reject ()

void
wocky_jingle_content_reject (WockyJingleContent *c,
                             WockyJingleReason reason);

wocky_jingle_content_get_remote_candidates ()

GList *
wocky_jingle_content_get_remote_candidates
                               (WockyJingleContent *c);

wocky_jingle_content_get_local_candidates ()

GList *
wocky_jingle_content_get_local_candidates
                               (WockyJingleContent *c);

wocky_jingle_content_get_credentials ()

gboolean
wocky_jingle_content_get_credentials (WockyJingleContent *c,
                                      gchar **ufrag,
                                      gchar **pwd);

wocky_jingle_content_change_direction ()

gboolean
wocky_jingle_content_change_direction (WockyJingleContent *c,
                                       WockyJingleContentSenders senders);

wocky_jingle_content_retransmit_candidates ()

void
wocky_jingle_content_retransmit_candidates
                               (WockyJingleContent *self,
                                gboolean all);

wocky_jingle_content_inject_candidates ()

void
wocky_jingle_content_inject_candidates
                               (WockyJingleContent *self,
                                WockyNode *transport_node);

wocky_jingle_content_is_created_by_us ()

gboolean
wocky_jingle_content_is_created_by_us (WockyJingleContent *c);

wocky_jingle_content_creator_is_initiator ()

gboolean
wocky_jingle_content_creator_is_initiator
                               (WockyJingleContent *c);

wocky_jingle_content_get_name ()

const gchar *
wocky_jingle_content_get_name (WockyJingleContent *self);

wocky_jingle_content_get_ns ()

const gchar *
wocky_jingle_content_get_ns (WockyJingleContent *self);

wocky_jingle_content_get_disposition ()

const gchar *
wocky_jingle_content_get_disposition (WockyJingleContent *self);

wocky_jingle_content_get_transport_type ()

WockyJingleTransportType
wocky_jingle_content_get_transport_type
                               (WockyJingleContent *c);

wocky_jingle_content_get_transport_ns ()

const gchar *
wocky_jingle_content_get_transport_ns (WockyJingleContent *self);

wocky_jingle_content_maybe_send_description ()

void
wocky_jingle_content_maybe_send_description
                               (WockyJingleContent *self);

wocky_jingle_content_sending ()

gboolean
wocky_jingle_content_sending (WockyJingleContent *self);

wocky_jingle_content_receiving ()

gboolean
wocky_jingle_content_receiving (WockyJingleContent *self);

wocky_jingle_content_set_sending ()

void
wocky_jingle_content_set_sending (WockyJingleContent *self,
                                  gboolean send);

wocky_jingle_content_request_receiving ()

void
wocky_jingle_content_request_receiving
                               (WockyJingleContent *self,
                                gboolean receive);

wocky_jingle_content_send_complete ()

void
wocky_jingle_content_send_complete (WockyJingleContent *self);

Types and Values

enum WockyJingleMediaType

Members

WOCKY_JINGLE_MEDIA_TYPE_NONE

   

WOCKY_JINGLE_MEDIA_TYPE_AUDIO

   

WOCKY_JINGLE_MEDIA_TYPE_VIDEO

   

enum WockyJingleContentState

Members

WOCKY_JINGLE_CONTENT_STATE_EMPTY

   

WOCKY_JINGLE_CONTENT_STATE_NEW

   

WOCKY_JINGLE_CONTENT_STATE_SENT

   

WOCKY_JINGLE_CONTENT_STATE_ACKNOWLEDGED

   

WOCKY_JINGLE_CONTENT_STATE_REMOVING

   

WockyJingleCandidate

typedef struct {
  WockyJingleTransportProtocol protocol;
  WockyJingleCandidateType type;

  gchar *id;
  gchar *address;
  int port;
  int component;
  int generation;

  int preference;
  gchar *username;
  gchar *password;
  int network;
} WockyJingleCandidate;

Property Details

The “content-ns” property

  “content-ns”               gchar *

Namespace identifying the content type.

Flags: Read / Write

Default value: NULL


The “disposition” property

  “disposition”              gchar *

Distinguishes between 'session' and other contents.

Flags: Read / Write

Default value: NULL


The “locally-created” property

  “locally-created”          gboolean

True if the content was created by the local client.

Flags: Read

Default value: FALSE


The “name” property

  “name”                     gchar *

A unique content name in the session.

Flags: Read / Write / Construct Only

Default value: NULL


The “senders” property

  “senders”                  guint

Valid senders for the stream.

Flags: Read / Write

Default value: 0


The “session” property

  “session”                  WockyJingleSession *

Jingle session object that owns this content.

Flags: Read / Write / Construct Only


The “state” property

  “state”                    guint

The current state that the content is in.

Flags: Read / Write

Default value: 0


The “transport-ns” property

  “transport-ns”             gchar *

Namespace identifying the transport type.

Flags: Read / Write

Default value: NULL

Signal Details

The “completed” signal

void
user_function (WockyJingleContent *wockyjinglecontent,
               gpointer            user_data)

Flags: Run Last


The “new-candidates” signal

void
user_function (WockyJingleContent *content,
               gpointer            candidates,
               gpointer            user_data)

Emitted when new candidates are received from the peer.

Parameters

content

the content

 

candidates

a GList of new candidates.

[type GList][element-type WockyJingleCandidate]

user_data

user data set when the signal handler was connected.

 

Flags: Run Last


The “new-share-channel” signal

void
user_function (WockyJingleContent *wockyjinglecontent,
               gchar              *arg1,
               guint               arg2,
               gpointer            user_data)

Flags: Run Last


The “ready” signal

void
user_function (WockyJingleContent *wockyjinglecontent,
               gpointer            user_data)

Flags: Has Details


The “removed” signal

void
user_function (WockyJingleContent *wockyjinglecontent,
               gpointer            user_data)

Flags: Has Details