| librygel-server Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define RYGEL_TYPE_MEDIA_ITEM RygelDataSource * rygel_media_item_create_stream_source (RygelMediaItem *self,const gchar *host_ip); gboolean rygel_media_item_is_live_stream (RygelMediaItem *self); gboolean rygel_media_item_streamable (RygelMediaItem *self); void rygel_media_item_add_uri (RygelMediaItem *self,const gchar *uri); 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); const gchar * rygel_media_item_get_date (RygelMediaItem *self); void rygel_media_item_set_date (RygelMediaItem *self,const gchar *value); const gchar * rygel_media_item_get_mime_type (RygelMediaItem *self); void rygel_media_item_set_mime_type (RygelMediaItem *self,const gchar *value); const gchar * rygel_media_item_get_dlna_profile (RygelMediaItem *self); void rygel_media_item_set_dlna_profile (RygelMediaItem *self,const gchar *value); gint64 rygel_media_item_get_size (RygelMediaItem *self); void rygel_media_item_set_size (RygelMediaItem *self,gint64 value); gboolean rygel_media_item_get_place_holder (RygelMediaItem *self); void rygel_media_item_set_place_holder (RygelMediaItem *self,gboolean value); const gchar * rygel_media_item_get_description (RygelMediaItem *self); void rygel_media_item_set_description (RygelMediaItem *self,const gchar *value); struct RygelMediaItem; struct RygelMediaItemClass;
#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);
|
the RygelMediaItem instance |
gboolean rygel_media_item_is_live_stream (RygelMediaItem *self);
|
the RygelMediaItem instance |
gboolean rygel_media_item_streamable (RygelMediaItem *self);
|
the RygelMediaItem instance |
void rygel_media_item_add_uri (RygelMediaItem *self,const gchar *uri);
|
the RygelMediaItem instance |
GUPnPProtocolInfo * rygel_media_item_get_protocol_info (RygelMediaItem *self,const gchar *uri,const gchar *protocol);
|
the RygelMediaItem instance |
void rygel_media_item_add_resources (RygelMediaItem *self,GUPnPDIDLLiteItem *didl_item,gboolean allow_internal,GError **error);
|
the RygelMediaItem instance |
|
location to store the error occuring, or NULL to ignore |
const gchar * rygel_media_item_get_date (RygelMediaItem *self);
Get and return the current value of the "date" property.
|
the RygelMediaItem instance to query |
Returns : |
the value of the "date" property |
void rygel_media_item_set_date (RygelMediaItem *self,const gchar *value);
Set the value of the "date" property to value.
|
the RygelMediaItem instance to modify |
|
the new value of the "date" property |
const gchar * rygel_media_item_get_mime_type (RygelMediaItem *self);
Get and return the current value of the "mime-type" property.
|
the RygelMediaItem instance to query |
Returns : |
the 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.
|
the RygelMediaItem instance to modify |
|
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.
|
the RygelMediaItem instance to query |
Returns : |
the 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.
|
the RygelMediaItem instance to modify |
|
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.
|
the RygelMediaItem instance to query |
Returns : |
the value of the "size" property |
void rygel_media_item_set_size (RygelMediaItem *self,gint64 value);
Set the value of the "size" property to value.
|
the RygelMediaItem instance to modify |
|
the new value of the "size" property |
gboolean rygel_media_item_get_place_holder (RygelMediaItem *self);
Get and return the current value of the "place-holder" property.
|
the RygelMediaItem instance to query |
Returns : |
the 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.
|
the RygelMediaItem instance to modify |
|
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.
|
the RygelMediaItem instance to query |
Returns : |
the 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.
|
the RygelMediaItem instance to modify |
|
the new value of the "description" property |
struct RygelMediaItem {
RygelMediaObject parent_instance;
RygelMediaItemPrivate * priv;
};
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 |