GUPnPAV.ProtocolInfo¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
The DLNA conversion flags. |
||
r/w/c |
Various generic DLNA flags. |
||
r/w/c |
The DLNA operation flags. |
||
r/w |
The DLNA profile of this info. |
||
r/w |
The MIME-type of this info. |
||
r/w |
The network this info is associated with. |
||
[ |
r/w |
The allowed play speeds on this info in the form of array of strings. |
|
r/w |
The protocol of this info. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GUPnPAV.ProtocolInfo(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
A new
GUPnPAV.ProtocolInfo
object. Unref after usage.- Return type:
- classmethod new_from_string(protocol_info)¶
- Parameters:
protocol_info (
str
) – The protocol info string- Raises:
- Returns:
A new
GUPnPAV.ProtocolInfo
object. Unref after usage.- Return type:
Parses the protocol_info string and creates a new
GUPnPAV.ProtocolInfo
object as a result.
- get_dlna_conversion()¶
- Returns:
The DLNA conversion flags.
- Return type:
Get the DLNA conversion flags.
- get_dlna_flags()¶
- Returns:
The generic DLNA flags.
- Return type:
Get the gereric DLNA flags.
- get_dlna_operation()¶
- Returns:
The DLNA operation flags.
- Return type:
Get the DLNA operation flags.
- get_dlna_profile()¶
- Returns:
The DLNA profile of this info or
None
. This string should not be freed.- Return type:
Get the DLNA profile of this info.
- get_mime_type()¶
- Returns:
The MIME-type of this info or
None
. This string should not be freed.- Return type:
Get the MIME-type of this info.
- get_network()¶
-
Get the network this info is associated with.
- get_play_speeds()¶
- Returns:
The allowed play speeds as array of strings or
None
. This return array and it’s content must not be modified or freed.- Return type:
Get the allowed play speeds on this info in the form of array of strings.
- get_protocol()¶
- Returns:
The protocol of this info or
None
. This string should not be freed.- Return type:
Get the protocol of this info.
- is_compatible(info2)¶
- Parameters:
info2 (
GUPnPAV.ProtocolInfo
) – The secondGUPnPAV.ProtocolInfo
- Returns:
True
if protocol_info is compatible with info, otherwiseFalse
.- Return type:
Checks if the given protocolInfo string is compatible with info.
- set_dlna_conversion(conversion)¶
- Parameters:
conversion (
GUPnPAV.DLNAConversion
) – The bitwise OR of one or more DLNA conversion flags
Set the DLNA conversion flags.
- set_dlna_flags(flags)¶
- Parameters:
flags (
GUPnPAV.DLNAFlags
) – The bitwise OR of one or more generic DLNA flags
Set the gereric DLNA flags.
- set_dlna_operation(operation)¶
- Parameters:
operation (
GUPnPAV.DLNAOperation
) – The bitwise OR of one or more DLNA operation flags
Set the DLNA operation flags.
- set_dlna_profile(profile)¶
- Parameters:
profile (
str
) – The DLNA profile string
Set the DLNA profile of this info.
- set_mime_type(mime_type)¶
- Parameters:
mime_type (
str
) – The MIME-type string
Set the MIME-type of this info.
- set_network(network)¶
- Parameters:
network (
str
) – The network string
Set the network this info is associated with.
- set_play_speeds(speeds)¶
- Parameters:
speeds (
str
) – The allowed play speeds
Set the allowed play speeds on this info in the form of array of strings.
Property Details¶
- GUPnPAV.ProtocolInfo.props.dlna_conversion¶
- Name:
dlna-conversion
- Type:
- Default Value:
- Flags:
The DLNA conversion flags.
- GUPnPAV.ProtocolInfo.props.dlna_flags¶
- Name:
dlna-flags
- Type:
- Default Value:
- Flags:
Various generic DLNA flags.
- GUPnPAV.ProtocolInfo.props.dlna_operation¶
- Name:
dlna-operation
- Type:
- Default Value:
- Flags:
The DLNA operation flags.
- GUPnPAV.ProtocolInfo.props.dlna_profile¶
-
The DLNA profile of this info.
- GUPnPAV.ProtocolInfo.props.mime_type¶
-
The MIME-type of this info.
- GUPnPAV.ProtocolInfo.props.network¶
-
The network this info is associated with.
- GUPnPAV.ProtocolInfo.props.play_speeds¶
-
The allowed play speeds on this info in the form of array of strings.