Functions | |
Evas_Object * | elm_player_add (Evas_Object *parent) |
Add a new Elm_Player object to the given parent Elementary (container) object. More... | |
Evas_Object * | elm_video_add (Evas_Object *parent) |
Add a new Elm_Video object to the given parent Elementary (container) object. More... | |
Eina_Bool | elm_video_file_set (Eo *obj, const char *filename) |
Define the file or URI that will be the video source. More... | |
void | elm_video_file_get (Eo *obj, const char **filename) |
Get the file or URI that is used as the video source. More... | |
Elementary comes with two object that help design application that need to display video.
The first one, Elm_Video, display a video by using Emotion. It embeds the video inside an Edje object, so you can do some animation depending on the video state change. It also implements a resource management policy to remove this burden from the application.
The second one, Elm_Player is a video player that need to be linked with an Elm_Video. It take care of updating its content according to Emotion event and provide a way to theme itself. It also automatically raises the priority of the linked Elm_Video so it will use the video decoder, if available. It also activates the "remember" function on the linked Elm_Video object.
Both widgets inherit from the Layout one, so that all the functions acting on it also work for video objects.
This widget emits the following signals, besides the ones sent from Layout:
"focused"
: When the video has received focus. (since 1.8) "unfocused"
: When the video has lost focus. (since 1.8)The player widget emits the following signals, besides the ones sent from Layout:
"forward,clicked"
- the user clicked the forward button."info,clicked"
- the user clicked the info button."next,clicked"
- the user clicked the next button."pause,clicked"
- the user clicked the pause button."play,clicked"
- the user clicked the play button."prev,clicked"
- the user clicked the prev button."rewind,clicked"
- the user clicked the rewind button."stop,clicked"
- the user clicked the stop button.Default content parts of the player widget that you can use for are:
Evas_Object* elm_player_add | ( | Evas_Object * | parent | ) |
Add a new Elm_Player object to the given parent Elementary (container) object.
parent | The parent object |
NULL
, on errors.This function inserts a new player widget on the canvas.
Evas_Object* elm_video_add | ( | Evas_Object * | parent | ) |
Add a new Elm_Video object to the given parent Elementary (container) object.
parent | The parent object |
NULL
, on errors.This function inserts a new video widget on the canvas.
void elm_video_file_get | ( | Eo * | obj, |
const char ** | filename | ||
) |
Get the file or URI that is used as the video source.
filename | The file or URI. |
Eina_Bool elm_video_file_set | ( | Eo * | obj, |
const char * | filename | ||
) |
Define the file or URI that will be the video source.
EINA_TRUE
on success, EINA_FALSE
otherwiseThis function will explicitly define a file or URI as a source for the video of the Elm_Video object.