GUPnPAV.DIDLLiteResource¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The number of audio channels in this resource. |
||
r/w |
The bitrate of this resource. |
||
r/w |
The sample size of this resource. |
||
r/w |
The clear text size (in bytes) of this resource. |
||
r/w |
The color-depth of this image/video resource. |
||
r/w/co |
Pointer to the DLNA metadata namespace registered with the resource. |
||
r/w |
The duration (in seconds) of this resource. |
||
r/w |
The height of this image/video resource. |
||
r/w |
The import URI associated with this resource |
||
r/w |
The protection system used by this resource. |
||
r/w |
The protocol info associated with this resource |
||
r/w/co |
Pointer to the PV metadata namespace registered with the resource. |
||
r/w |
The sample frequency of this resource. |
||
r/w |
The size (in bytes) of this resource. |
||
r/w |
The size (in bytes) of this resource. |
||
r/w |
Type of the external subtitle file |
||
r/w |
Uri of the external subtitle file |
||
r/w |
The number of tracks of this resource. |
||
r/w |
The update count of this resource. |
||
r/w |
The URI associated with this resource |
||
r/w |
The width of this image/video resource. |
||
r/w/co |
The pointer to res node in XML document. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GUPnPAV.DIDLLiteResource(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- get_audio_channels()¶
- Returns:
The number of audio channels in the self or -1.
- Return type:
Get the number of audio channels in the self.
- get_bitrate()¶
- Returns:
The bitrate (in bytes per second) of the self or -1.
- Return type:
Get the bitrate (in bytes per second) of the self.
- get_bits_per_sample()¶
- Returns:
The number of bits per sample of the self or -1.
- Return type:
Get the sample size of the self.
- get_cleartext_size()¶
- Returns:
The size (in bytes) of the self or -1.
- Return type:
Get the size (in bytes) of the self.
- get_color_depth()¶
- Returns:
The color depth of the self or -1.
- Return type:
Get the color-depth of this image/video resource.
- get_dlna_namespace()¶
- Returns:
The pointer to DLNA namespace in XML document.
- Return type:
Get the pointer to the DLNA metadata namespace registered with the XML document containing this object.
- get_duration()¶
- Returns:
The duration (in seconds) of the self or -1.
- Return type:
Get the duration (in seconds) of the self.
- get_height()¶
- Returns:
The height of the self or -1.
- Return type:
Get the height of this image/video resource.
- get_import_uri()¶
-
Get the import URI associated with the self.
- get_protection()¶
-
Get the protection system used by the self.
- get_protocol_info()¶
- Returns:
The protocol info associated with the self or
None
. The returned object must not be unrefed.- Return type:
Get the protocol info associated with the self.
- get_pv_namespace()¶
- Returns:
The pointer to DLNA namespace in XML document.
- Return type:
Get the pointer to the DLNA metadata namespace registered with the XML document containing this object.
- get_sample_freq()¶
- Returns:
The sample frequency of the self or -1.
- Return type:
Get the sample frequency of the self.
- get_size()¶
- Returns:
The size (in bytes) of the self or -1.
- Return type:
Get the size (in bytes) of the self.
- get_size64()¶
- Returns:
The size (in bytes) of the self or -1.
- Return type:
Get the size (in bytes) of the self.
- get_subtitle_file_type()¶
-
New in version 0.12.4.
- get_subtitle_file_uri()¶
-
New in version 0.12.4.
- get_track_total()¶
- Returns:
The total track count of the self.
- Return type:
Get the total track count of this resource.
- get_update_count()¶
- Returns:
The update count of the self.
- Return type:
Get the update count of this resource.
- get_uri()¶
-
Get the URI associated with the self.
- get_width()¶
- Returns:
The width of this image/video resource or -1.
- Return type:
Get the width of this image/video resource.
- get_xml_node()¶
- Returns:
The pointer to res node in XML document.
- Return type:
Get the pointer to res node in XML document.
- set_audio_channels(n_channels)¶
- Parameters:
n_channels (
int
) – The number of channels
Set the number of audio channels in the self. Passing a negative number will unset this property.
- set_bitrate(bitrate)¶
- Parameters:
bitrate (
int
) – The bitrate
Set the bitrate (in bytes per second) of the self. Passing a negative number will unset this property.
- set_bits_per_sample(sample_size)¶
- Parameters:
sample_size (
int
) – The number of bits per sample
Set the sample size of the self. Passing a negative number will unset this property.
- set_cleartext_size(cleartext_size)¶
- Parameters:
cleartext_size (
int
) – The size (in bytes)
Set the size (in bytes) of the self. Passing a negative number will unset this property.
- set_color_depth(color_depth)¶
- Parameters:
color_depth (
int
) – The color-depth
Set the color-depth of this image/video resource. Passing a negative number will unset this property.
- set_duration(duration)¶
- Parameters:
duration (
int
) – The duration (in seconds)
Set the duration (in seconds) of the self. Passing a negative number will unset this property.
- set_height(height)¶
- Parameters:
height (
int
) – The height
Set the height of this image/video resource. Setting both width and height to a negative number will unset the resolution property.
- set_import_uri(import_uri)¶
- Parameters:
import_uri (
str
) – The URI as string
Set the import URI associated with the self.
- set_protection(protection)¶
- Parameters:
protection (
str
) – The protection system identifier as string
Set the protection system used by the self. Passing a negative number will unset this property.
- set_protocol_info(info)¶
- Parameters:
info (
GUPnPAV.ProtocolInfo
) – The protocol string
Set the protocol info associated with the self.
- set_sample_freq(sample_freq)¶
- Parameters:
sample_freq (
int
) – The sample frequency
Set the sample frequency of the self. Passing a negative number will unset this property.
- set_size(size)¶
- Parameters:
size (
int
) – The size (in bytes)
Set the size (in bytes) of the self. Passing a negative number will unset this property.
- set_size64(size)¶
- Parameters:
size (
int
) – The size (in bytes)
Set the size (in bytes) of the self. Passing a negative number will unset this property.
- set_subtitle_file_type(type)¶
-
Set the type of an external subtitle file, specified via pv:subtitleFileUri using
GUPnPAV.DIDLLiteResource.set_subtitle_file_uri
().When type is
None
the value is removed.New in version 0.12.4.
- set_subtitle_file_uri(uri)¶
-
Set the URI of an external subtitle file to be used with this resource. When uri is
None
the value is removed.New in version 0.12.4.
- set_track_total(track_total)¶
- Parameters:
track_total (
int
) – The total number of tracks in this resource
Set the total number of tracks in this resource.
- set_update_count(update_count)¶
- Parameters:
update_count (
int
) – The update_count
Set the update count of this resource.
- set_width(width)¶
- Parameters:
width (
int
) – The width
Set the width of this image/video resource. Setting both width and height to a negative number will unset the resolution property.
- track_total_is_set()¶
-
Check whether the total track count property of this resource is set.
- unset_track_total()¶
Unset the total track count of this resource.
- unset_update_count()¶
Unset the update count of this resource.
Property Details¶
- GUPnPAV.DIDLLiteResource.props.audio_channels¶
-
The number of audio channels in this resource.
- GUPnPAV.DIDLLiteResource.props.bitrate¶
-
The bitrate of this resource.
- GUPnPAV.DIDLLiteResource.props.bits_per_sample¶
-
The sample size of this resource.
- GUPnPAV.DIDLLiteResource.props.cleartext_size¶
-
The clear text size (in bytes) of this resource.
- GUPnPAV.DIDLLiteResource.props.color_depth¶
-
The color-depth of this image/video resource.
- GUPnPAV.DIDLLiteResource.props.dlna_namespace¶
- Name:
dlna-namespace
- Type:
- Default Value:
- Flags:
Pointer to the DLNA metadata namespace registered with the resource object.
- GUPnPAV.DIDLLiteResource.props.duration¶
-
The duration (in seconds) of this resource.
- GUPnPAV.DIDLLiteResource.props.height¶
-
The height of this image/video resource.
- GUPnPAV.DIDLLiteResource.props.import_uri¶
-
The Import URI associated with this resource.
- GUPnPAV.DIDLLiteResource.props.protection¶
-
The protection system used for this resource.
- GUPnPAV.DIDLLiteResource.props.protocol_info¶
- Name:
protocol-info
- Type:
- Default Value:
- Flags:
The protocol info associated with this resource.
- GUPnPAV.DIDLLiteResource.props.pv_namespace¶
- Name:
pv-namespace
- Type:
- Default Value:
- Flags:
Pointer to the PV metadata namespace registered with the resource object.
- GUPnPAV.DIDLLiteResource.props.sample_freq¶
-
The sample frequency of this resource.
- GUPnPAV.DIDLLiteResource.props.size¶
-
The size (in bytes) of this resource.
- GUPnPAV.DIDLLiteResource.props.size64¶
-
The size (in bytes) of this resource.
- GUPnPAV.DIDLLiteResource.props.subtitle_file_type¶
-
Type of external subtitle file. Usually SRT or SMI.
- GUPnPAV.DIDLLiteResource.props.subtitle_file_uri¶
-
Uri to external subtitle file.
- GUPnPAV.DIDLLiteResource.props.track_total¶
-
Number of tracks in a DIDL_S or DIDL_V resource.
- GUPnPAV.DIDLLiteResource.props.update_count¶
-
The update count of this resource.
- GUPnPAV.DIDLLiteResource.props.uri¶
-
The URI associated with this resource.
- GUPnPAV.DIDLLiteResource.props.width¶
-
The width of this image/video resource.