Constructor

PurpleMediaCodecnew

Declaration [src]

PurpleMediaCodec*
purple_media_codec_new (
  int id,
  const char* encoding_name,
  PurpleMediaSessionType media_type,
  guint clock_rate
)

Description [src]

Creates a new PurpleMediaCodec instance.

Parameters

id int
 

Codec identifier.

encoding_name const char*
 

Name of the media type this encodes.

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

PurpleMediaSessionType of this codec.

clock_rate guint
 

The clock rate this codec encodes at, if applicable.

Return value

Returns: PurpleMediaCodec
 

The newly created PurpleMediaCodec.

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