Virtual Method

PurpleMediaBackendadd_stream

since: 2.7

Declaration [src]

gboolean
add_stream (
  PurpleMediaBackend* self,
  const gchar* sess_id,
  const gchar* who,
  PurpleMediaSessionType type,
  gboolean initiator,
  const gchar* transmitter,
  GHashTable* params
)

Description [src]

Creates and adds a stream to the media backend.

Available since: 2.7

Parameters

sess_id

Type: const gchar*

The session id of the stream to add.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
who

Type: const gchar*

The remote participant of the stream to add.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
type

Type: PurpleMediaSessionType

The media type and direction of the stream to add.

initiator

Type: gboolean

True if the local user initiated the stream.

transmitter

Type: const gchar*

The string id of the tranmsitter to use.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
params

Type: GHashTable

The additional parameters to pass when creating the stream.

The data is owned by the caller of the function.

Return value

Type: gboolean

True if the stream was successfully created, otherwise False.