Constructor
PurpleMediaCodecnew
since: 2.6
Declaration [src]
PurpleMediaCodec*
purple_media_codec_new (
int id,
const char* encoding_name,
PurpleMediaSessionType media_type,
guint clock_rate
)
Parameters
id
-
Type:
int
Codec identifier.
encoding_name
-
Type:
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
-
Type:
PurpleMediaSessionType
PurpleMediaSessionType of this codec.
clock_rate
-
Type:
guint
The clock rate this codec encodes at, if applicable.
Return value
Type: PurpleMediaCodec
The newly created PurpleMediaCodec.
The caller of the function takes ownership of the data, and is responsible for freeing it. |