| Top |
| gchar * | description | Read / Write |
| gchar * | dlna-profile | Read / Write |
| gchar * | mime-type | Read / Write |
| GUPnPOCMFlags | ocm-flags | Read |
| gboolean | place-holder | Read / Write |
| gint64 | size | Read / Write |
GObject ╰── RygelMediaObject ╰── RygelMediaItem ├── RygelAudioItem ├── RygelImageItem ╰── RygelPlaylistItem
#define RYGEL_TYPE_MEDIA_ITEM (rygel_media_item_get_type ())
The type for RygelMediaItem.
RygelDataSource * rygel_media_item_create_stream_source (RygelMediaItem *self,const gchar *host_ip);
GUPnPProtocolInfo * rygel_media_item_get_protocol_info (RygelMediaItem *self,const gchar *uri,const gchar *protocol);
void rygel_media_item_add_resources (RygelMediaItem *self,GUPnPDIDLLiteItem *didl_item,gboolean allow_internal,GError **error);
self |
the RygelMediaItem instance |
|
didl_item |
|
|
allow_internal |
|
|
error |
location to store the error occuring, or |
const gchar *
rygel_media_item_get_mime_type (RygelMediaItem *self);
Get and return the current value of the "mime-type" property.
void rygel_media_item_set_mime_type (RygelMediaItem *self,const gchar *value);
Set the value of the "mime-type" property to value
.
self |
the RygelMediaItem instance to modify |
|
value |
the new value of the "mime-type" property |
const gchar *
rygel_media_item_get_dlna_profile (RygelMediaItem *self);
Get and return the current value of the "dlna-profile" property.
void rygel_media_item_set_dlna_profile (RygelMediaItem *self,const gchar *value);
Set the value of the "dlna-profile" property to value
.
self |
the RygelMediaItem instance to modify |
|
value |
the new value of the "dlna-profile" property |
gint64
rygel_media_item_get_size (RygelMediaItem *self);
Get and return the current value of the "size" property.
void rygel_media_item_set_size (RygelMediaItem *self,gint64 value);
Set the value of the "size" property to value
.
gboolean
rygel_media_item_get_place_holder (RygelMediaItem *self);
Get and return the current value of the "place-holder" property.
void rygel_media_item_set_place_holder (RygelMediaItem *self,gboolean value);
Set the value of the "place-holder" property to value
.
self |
the RygelMediaItem instance to modify |
|
value |
the new value of the "place-holder" property |
const gchar *
rygel_media_item_get_description (RygelMediaItem *self);
Get and return the current value of the "description" property.
void rygel_media_item_set_description (RygelMediaItem *self,const gchar *value);
Set the value of the "description" property to value
.
self |
the RygelMediaItem instance to modify |
|
value |
the new value of the "description" property |
struct RygelMediaItem;
Represents a media item (Music, Video or Image).
These objects correspond to items in the UPnP ContentDirectory's DIDL-Lite XML.
struct RygelMediaItemClass {
RygelMediaObjectClass parent_class;
RygelDataSource* (*create_stream_source) (RygelMediaItem* self, const gchar* host_ip);
gboolean (*streamable) (RygelMediaItem* self);
void (*add_uri) (RygelMediaItem* self, const gchar* uri);
void (*add_proxy_resources) (RygelMediaItem* self, RygelHTTPServer* server, GUPnPDIDLLiteItem* didl_item, GError** error);
GUPnPProtocolInfo* (*get_protocol_info) (RygelMediaItem* self, const gchar* uri, const gchar* protocol);
void (*add_resources) (RygelMediaItem* self, GUPnPDIDLLiteItem* didl_item, gboolean allow_internal, GError** error);
};
The class structure for RYGEL_TYPE_MEDIA_ITEM. All the fields in this structure are private and should never be accessed directly.
RygelMediaObjectClass |
the parent class structure |
|
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method used internally |
||
virtual method used internally |
“description” property“description” gchar *
description.
Flags: Read / Write
Default value: NULL
“dlna-profile” property“dlna-profile” gchar *
dlna-profile.
Flags: Read / Write
Default value: NULL
“place-holder” property“place-holder” gboolean
place-holder.
Flags: Read / Write
Default value: FALSE