GstRtp.RTPPayloadInfo¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
bitrate |
r/w |
the bitrate of the media. 0 = unknown/variable. |
|
clock_rate |
r/w |
default clock rate, 0 = unknown/variable |
|
encoding_name |
r/w |
the encoding name of pt |
|
encoding_parameters |
r/w |
encoding parameters. For audio this is the number of channels. |
|
media |
r/w |
the media type(s), usually “audio”, “video”, “application”, “text”, “message”. |
|
payload_type |
r/w |
payload type, -1 means dynamic |
Methods¶
class |
|
class |
|
Details¶
- class GstRtp.RTPPayloadInfo¶
Structure holding default payload type information.
- classmethod for_name(media, encoding_name)[source]¶
- Parameters:
- Returns:
a
GstRtp.RTPPayloadInfo
orNone
when no info could be found.- Return type:
Get the
GstRtp.RTPPayloadInfo
for media and encoding_name. This function is mostly used to get the default clock-rate and bandwidth for dynamic payload types specified with media and encoding name.The search for encoding_name will be performed in a case insensitive way.
- classmethod for_pt(payload_type)[source]¶
- Parameters:
payload_type (
int
) – the payload_type to find- Returns:
a
GstRtp.RTPPayloadInfo
orNone
when no info could be found.- Return type:
Get the
GstRtp.RTPPayloadInfo
for payload_type. This function is mostly used to get the default clock-rate and bandwidth for static payload types specified with payload_type.