![]() |
![]() |
![]() |
Grilo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <grilo.h> gboolean grl_pls_media_is_playlist (GrlMedia *media
); guint grl_pls_browse (GrlSource *source
,GrlMedia *playlist
,const GList *keys
,GrlOperationOptions *options
,GrlPlsFilterFunc filter_func
,GrlSourceResultCb callback
,gpointer user_data
); GList * grl_pls_browse_sync (GrlSource *source
,GrlMedia *playlist
,const GList *keys
,GrlOperationOptions *options
,GrlPlsFilterFunc filter_func
,GError **error
);
Grilo only deals with audio, video or image content, but not with playlists. This library allow to identify playlists and browse into them exposing playlist entries as GrlMedia objects.
gboolean grl_pls_media_is_playlist (GrlMedia *media
);
Check if a file identified by GrlMedia object is a playlist or not. This function does blocking I/O.
|
GrlMedia |
Returns : |
TRUE if a GrlMedia is recognized as a playlist. |
Since 0.2.0
guint grl_pls_browse (GrlSource *source
,GrlMedia *playlist
,const GList *keys
,GrlOperationOptions *options
,GrlPlsFilterFunc filter_func
,GrlSourceResultCb callback
,gpointer user_data
);
Browse into a playlist. The playlist entries are
returned via the callback
function as GrlMedia objects.
This function imitates the API and way of working of
grl_source_browse.
The playlist
provided could be of any GrlMedia class,
as long as its URI points to a valid playlist file.
This function is asynchronous.
See #grl_source_browse()
function for additional information
and sample code.
|
a source |
|
a playlist |
|
the GList of GrlKeyIDs to request. [element-type GrlKeyID] |
|
options wanted for that operation |
|
A filter function. [scope async] |
|
the user defined callback. [scope notified] |
|
the user data to pass in the callback |
Returns : |
the operation identifier |
Since 0.2.0
GList * grl_pls_browse_sync (GrlSource *source
,GrlMedia *playlist
,const GList *keys
,GrlOperationOptions *options
,GrlPlsFilterFunc filter_func
,GError **error
);
Browse into a playlist. The playlist entries are
returned via the callback
function as GrlMedia objects.
This function imitates the API and way of working of
grl_source_browse_sync.
The filter function filter_func
will be used for plugins
or applications to be able to refuse particular entries from
being listed.
If a NULL
filter function is passed, the media will be added
with only the metadata coming from the playlist included.
This function is synchronous.
See #grl_source_browse_sync()
function for additional information
and sample code.
|
a source |
|
a playlist |
|
the GList of GrlKeyIDs to request. [element-type GrlKeyID] |
|
A filter function. [scope async] |
|
options wanted for that operation |
|
a GError, or NULL
|
Returns : |
a GList with GrlMedia
elements. After use g_object_unref() every element and g_list_free() the
list. [element-type Grl.Media][transfer full]
|
Since 0.2.0