| Top |
| gint | audio-channels | Read / Write |
| gint | bitrate | Read / Write |
| gint | bits-per-sample | Read / Write |
| gint64 | cleartext-size | Read / Write |
| gint | color-depth | Read / Write |
| gpointer | dlna-namespace | Read / Write / Construct Only |
| glong | duration | Read / Write |
| gint | height | Read / Write |
| gchar * | import-uri | Read / Write |
| gchar * | protection | Read / Write |
| GUPnPProtocolInfo * | protocol-info | Read / Write |
| gpointer | pv-namespace | Read / Write / Construct Only |
| gint | sample-freq | Read / Write |
| glong | size | Read / Write |
| gint64 | size64 | Read / Write |
| gchar * | subtitle-file-type | Read / Write |
| gchar * | subtitle-file-uri | Read / Write |
| guint | track-total | Read / Write |
| guint | update-count | Read / Write |
| gchar * | uri | Read / Write |
| gint | width | Read / Write |
| GUPnPXMLDoc * | xml-doc | Write / Construct Only |
| gpointer | xml-node | Read / Write / Construct Only |
void gupnp_didl_lite_resource_set_uri (GUPnPDIDLLiteResource *resource,const char *uri);
Set the URI associated with the resource
.
void gupnp_didl_lite_resource_set_import_uri (GUPnPDIDLLiteResource *resource,const char *import_uri);
Set the import URI associated with the resource
.
void gupnp_didl_lite_resource_set_protocol_info (GUPnPDIDLLiteResource *resource,GUPnPProtocolInfo *info);
Set the protocol info associated with the resource
.
void gupnp_didl_lite_resource_set_size (GUPnPDIDLLiteResource *resource,glong size);
Set the size (in bytes) of the resource
. Passing a negative number will
unset this property.
void gupnp_didl_lite_resource_set_size64 (GUPnPDIDLLiteResource *resource,gint64 size);
Set the size (in bytes) of the resource
. Passing a negative number will
unset this property.
void gupnp_didl_lite_resource_set_duration (GUPnPDIDLLiteResource *resource,glong duration);
Set the duration (in seconds) of the resource
. Passing a negative number
will unset this property.
void gupnp_didl_lite_resource_set_bitrate (GUPnPDIDLLiteResource *resource,int bitrate);
Set the bitrate (in bytes per second) of the resource
. Passing a negative
number will unset this property.
void gupnp_didl_lite_resource_set_sample_freq (GUPnPDIDLLiteResource *resource,int sample_freq);
Set the sample frequency of the resource
. Passing a negative number will
unset this property.
void gupnp_didl_lite_resource_set_bits_per_sample (GUPnPDIDLLiteResource *resource,int sample_size);
Set the sample size of the resource
. Passing a negative number will unset
this property.
void gupnp_didl_lite_resource_set_protection (GUPnPDIDLLiteResource *resource,const char *protection);
Set the protection system used by the resource
. Passing a negative number
will unset this property.
void gupnp_didl_lite_resource_set_audio_channels (GUPnPDIDLLiteResource *resource,int n_channels);
Set the number of audio channels in the resource
. Passing a negative number
will unset this property.
void gupnp_didl_lite_resource_set_width (GUPnPDIDLLiteResource *resource,int width);
Set the width of this image/video resource. Setting both width and height to a negative number will unset the resolution property.
void gupnp_didl_lite_resource_set_height (GUPnPDIDLLiteResource *resource,int height);
Set the height of this image/video resource. Setting both width and height to a negative number will unset the resolution property.
void gupnp_didl_lite_resource_set_color_depth (GUPnPDIDLLiteResource *resource,int color_depth);
Set the color-depth of this image/video resource. Passing a negative number will unset this property.
void gupnp_didl_lite_resource_set_cleartext_size (GUPnPDIDLLiteResource *resource,gint64 cleartext_size);
Set the size (in bytes) of the resource
. Passing a negative number will
unset this property.
const char *
gupnp_didl_lite_resource_get_uri (GUPnPDIDLLiteResource *resource);
Get the URI associated with the resource
.
const char *
gupnp_didl_lite_resource_get_import_uri
(GUPnPDIDLLiteResource *resource);
Get the import URI associated with the resource
.
GUPnPProtocolInfo *
gupnp_didl_lite_resource_get_protocol_info
(GUPnPDIDLLiteResource *resource);
Get the protocol info associated with the resource
.
The protocol info associated with the resource
or NULL. The
returned object must not be unrefed.
[transfer none]
long
gupnp_didl_lite_resource_get_size (GUPnPDIDLLiteResource *resource);
Get the size (in bytes) of the resource
.
gint64
gupnp_didl_lite_resource_get_size64 (GUPnPDIDLLiteResource *resource);
Get the size (in bytes) of the resource
.
long
gupnp_didl_lite_resource_get_duration (GUPnPDIDLLiteResource *resource);
Get the duration (in seconds) of the resource
.
int
gupnp_didl_lite_resource_get_bitrate (GUPnPDIDLLiteResource *resource);
Get the bitrate (in bytes per second) of the resource
.
int
gupnp_didl_lite_resource_get_sample_freq
(GUPnPDIDLLiteResource *resource);
Get the sample frequency of the resource
.
int
gupnp_didl_lite_resource_get_bits_per_sample
(GUPnPDIDLLiteResource *resource);
Get the sample size of the resource
.
const char *
gupnp_didl_lite_resource_get_protection
(GUPnPDIDLLiteResource *resource);
Get the protection system used by the resource
.
int
gupnp_didl_lite_resource_get_audio_channels
(GUPnPDIDLLiteResource *resource);
Get the number of audio channels in the resource
.
int
gupnp_didl_lite_resource_get_width (GUPnPDIDLLiteResource *resource);
Get the width of this image/video resource.
int
gupnp_didl_lite_resource_get_height (GUPnPDIDLLiteResource *resource);
Get the height of this image/video resource.
int
gupnp_didl_lite_resource_get_color_depth
(GUPnPDIDLLiteResource *resource);
Get the color-depth of this image/video resource.
xmlNode *
gupnp_didl_lite_resource_get_xml_node (GUPnPDIDLLiteResource *resource);
Get the pointer to res node in XML document.
gint64
gupnp_didl_lite_resource_get_cleartext_size
(GUPnPDIDLLiteResource *resource);
Get the size (in bytes) of the resource
.
xmlNsPtr
gupnp_didl_lite_resource_get_dlna_namespace
(GUPnPDIDLLiteResource *resource);
Get the pointer to the DLNA metadata namespace registered with the XML document containing this object.
xmlNsPtr
gupnp_didl_lite_resource_get_pv_namespace
(GUPnPDIDLLiteResource *resource);
Get the pointer to the DLNA metadata namespace registered with the XML document containing this object.
guint
gupnp_didl_lite_resource_get_update_count
(GUPnPDIDLLiteResource *resource);
Get the update count of this resource.
void gupnp_didl_lite_resource_set_update_count (GUPnPDIDLLiteResource *resource,guint update_count);
Set the update count of this resource.
void
gupnp_didl_lite_resource_unset_update_count
(GUPnPDIDLLiteResource *resource);
Unset the update count of this resource.
gboolean
gupnp_didl_lite_resource_update_count_is_set
(GUPnPDIDLLiteResource *resource);
Check whether the update count property of this resource is set.
guint
gupnp_didl_lite_resource_get_track_total
(GUPnPDIDLLiteResource *resource);
Get the total track count of this resource.
void gupnp_didl_lite_resource_set_track_total (GUPnPDIDLLiteResource *resource,guint track_total);
Set the total number of tracks in this resource.
gboolean
gupnp_didl_lite_resource_track_total_is_set
(GUPnPDIDLLiteResource *resource);
Check whether the total track count property of this resource is set.
void
gupnp_didl_lite_resource_unset_track_total
(GUPnPDIDLLiteResource *resource);
Unset the total track count of this resource.
const char *
gupnp_didl_lite_resource_get_subtitle_file_type
(GUPnPDIDLLiteResource *resource);
Since 0.12.4
const char *
gupnp_didl_lite_resource_get_subtitle_file_uri
(GUPnPDIDLLiteResource *resource);
Since 0.12.4
void gupnp_didl_lite_resource_set_subtitle_file_type (GUPnPDIDLLiteResource *resource,const char *type);
Set the type of an external subtitle file, specified via
pv:subtitleFileUri using gupnp_didl_lite_resource_set_subtitle_file_uri().
When type
is NULL the value is removed.
Since 0.12.4
void gupnp_didl_lite_resource_set_subtitle_file_uri (GUPnPDIDLLiteResource *resource,const char *uri);
Set the URI of an external subtitle file to be used with this resource.
When uri
is NULL the value is removed.
Since 0.12.4
“audio-channels” property“audio-channels” gint
The number of audio channels in this resource.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“bitrate” property“bitrate” gint
The bitrate of this resource.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“bits-per-sample” property“bits-per-sample” gint
The sample size of this resource.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“cleartext-size” property “cleartext-size” gint64
The clear text size (in bytes) of this resource.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“color-depth” property“color-depth” gint
The color-depth of this image/video resource.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“dlna-namespace” property“dlna-namespace” gpointer
Pointer to the DLNA metadata namespace registered with the resource object.
Flags: Read / Write / Construct Only
“duration” property“duration” glong
The duration (in seconds) of this resource.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“height” property“height” gint
The height of this image/video resource.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“import-uri” property“import-uri” gchar *
The Import URI associated with this resource.
Flags: Read / Write
Default value: NULL
“protection” property“protection” gchar *
The protection system used for this resource.
Flags: Read / Write
Default value: NULL
“protocol-info” property“protocol-info” GUPnPProtocolInfo *
The protocol info associated with this resource.
Flags: Read / Write
“pv-namespace” property“pv-namespace” gpointer
Pointer to the PV metadata namespace registered with the resource object.
Flags: Read / Write / Construct Only
“sample-freq” property“sample-freq” gint
The sample frequency of this resource.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“size” property“size” glong
The size (in bytes) of this resource.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“size64” property “size64” gint64
The size (in bytes) of this resource.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“subtitle-file-type” property“subtitle-file-type” gchar *
Type of external subtitle file. Usually SRT or SMI.
Flags: Read / Write
Default value: NULL
“subtitle-file-uri” property“subtitle-file-uri” gchar *
Uri to external subtitle file.
Flags: Read / Write
Default value: NULL
“track-total” property“track-total” guint
Number of tracks in a DIDL_S or DIDL_V resource.
Flags: Read / Write
Default value: 0
“update-count” property“update-count” guint
The update count of this resource.
Flags: Read / Write
Default value: 0
“uri” property“uri” gchar *
The URI associated with this resource.
Flags: Read / Write
Default value: NULL
“width” property“width” gint
The width of this image/video resource.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“xml-doc” property“xml-doc” GUPnPXMLDoc *
The reference to XML document containing this object.
Internal property.
Flags: Write / Construct Only
Stability Level: Private
“xml-node” property“xml-node” gpointer
The pointer to res node in XML document.
Flags: Read / Write / Construct Only