Enumerations | |
enum | _Emotion_Meta_Info { EMOTION_META_INFO_TRACK_TITLE , EMOTION_META_INFO_TRACK_ARTIST , EMOTION_META_INFO_TRACK_ALBUM , EMOTION_META_INFO_TRACK_YEAR , EMOTION_META_INFO_TRACK_GENRE , EMOTION_META_INFO_TRACK_COMMENT , EMOTION_META_INFO_TRACK_DISC_ID , EMOTION_META_INFO_TRACK_COUNT } |
Used for retrieving information about the media file being played. More... | |
Functions | |
EMOTION_API const char * | emotion_object_title_get (const Evas_Object *obj) |
Get the dvd title from this emotion object. More... | |
EMOTION_API const char * | emotion_object_meta_info_get (const Evas_Object *obj, Emotion_Meta_Info meta) |
Retrieve meta information from this file being played. More... | |
EMOTION_API void | emotion_object_last_position_load (Evas_Object *obj) |
Load the last known position if available. More... | |
EMOTION_API void | emotion_object_last_position_save (Evas_Object *obj) |
Save the lastest position if possible. More... | |
enum _Emotion_Meta_Info |
Used for retrieving information about the media file being played.
EMOTION_API const char * emotion_object_title_get | ( | const Evas_Object * | obj | ) |
Get the dvd title from this emotion object.
obj | The object which the title will be retrieved from. |
This function is only useful when playing a DVD.
EMOTION_API const char * emotion_object_meta_info_get | ( | const Evas_Object * | obj, |
Emotion_Meta_Info | meta | ||
) |
Retrieve meta information from this file being played.
obj | The object which the meta info will be extracted from. |
meta | The type of meta information that will be extracted. |
This function retrieves information about the file loaded. It can retrieve the track title, artist name, album name, etc. See Emotion_Meta_Info for all the possibilities.
The meta info may be not available on all types of files. It will return NULL
if the the file doesn't have meta info, or if this specific field is empty.
References EMOTION_META_INFO_TRACK_ALBUM, EMOTION_META_INFO_TRACK_ARTIST, EMOTION_META_INFO_TRACK_COMMENT, EMOTION_META_INFO_TRACK_DISC_ID, EMOTION_META_INFO_TRACK_GENRE, EMOTION_META_INFO_TRACK_TITLE, EMOTION_META_INFO_TRACK_YEAR, and ERR.
EMOTION_API void emotion_object_last_position_load | ( | Evas_Object * | obj | ) |
Load the last known position if available.
obj | The object which the query is being ran on. |
By using Xattr, Emotion is able, if the system permitt it, to store and retrieve the latest position. It should trigger some smart callback to let the application know when it succeed or fail. Every operation is fully asynchronous and not linked to the actual engine used to play the vide.
References EINA_REFCOUNT_REF, eina_xattr_double_get(), eio_file_xattr_double_get(), emotion_object_position_set(), and evas_object_smart_callback_call().
EMOTION_API void emotion_object_last_position_save | ( | Evas_Object * | obj | ) |
Save the lastest position if possible.
obj | The object which the query is being ran on. |
By using Xattr, Emotion is able, if the system permitt it, to store and retrieve the latest position. It should trigger some smart callback to let the application know when it succeed or fail. Every operation is fully asynchronous and not linked to the actual engine used to play the vide.
References EINA_REFCOUNT_REF, eina_xattr_double_set(), eio_file_xattr_double_set(), emotion_object_position_get(), and evas_object_smart_callback_call().