| Top |
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
.
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