Method

PurpleMediaManagerget_element

since: 2.6

Declaration [src]

GstElement*
purple_media_manager_get_element (
  PurpleMediaManager* manager,
  PurpleMediaSessionType type,
  PurpleMedia* media,
  const gchar* session_id,
  const gchar* participant
)

Description [src]

Gets the media element for the given session.

Available since: 2.6

Parameters

type

Type: PurpleMediaSessionType

The type of source/sink to get.

media

Type: PurpleMedia

The media call this element is requested for.

The data is owned by the caller of the function.
session_id

Type: const gchar*

The id of the session this element is requested for or NULL.

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

Type: const gchar*

The remote user this element is requested for or NULL.

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

Return value

Type: GstElement

A GStreamer source or sink for audio or video.

The caller of the method takes ownership of the data, and is responsible for freeing it.