Tizen Native API  5.0

video_inheritance_tree.png
player_inheritance_tree.png

Elementary comes with two object that help design application that need to display video.

The first one, Efl_Ui_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 Efl_Ui_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 Efl_Ui_Video so it will use the video decoder, if available. It also activates the "remember" function on the linked Efl_Ui_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:

  • "video" - A video of the player

Functions

void elm_video_remember_position_set (Efl_Ui_Video *obj, Eina_Bool remember)
 Set whether the object can remember the last played position.
Eina_Bool elm_video_remember_position_get (const Efl_Ui_Video *obj)
 Set whether the object can remember the last played position.
Efl_Canvas_Objectelm_video_emotion_get (const Efl_Ui_Video *obj)
 Get the underlying Emotion object.
const char * elm_video_title_get (const Efl_Ui_Video *obj)
 Get the title (for instance DVD title) from this emotion object.

Function Documentation

Efl_Canvas_Object* elm_video_emotion_get ( const Efl_Ui_Video *  obj)

Get the underlying Emotion object.

Parameters:
[in]objThe object.
Returns:
The underlying Emotion object.
Eina_Bool elm_video_remember_position_get ( const Efl_Ui_Video *  obj)

Set whether the object can remember the last played position.

Note:
This API only serves as indication. System support is required.
Parameters:
[in]objThe object.
Returns:
true when the object can remember the last position, false otherwise
void elm_video_remember_position_set ( Efl_Ui_Video *  obj,
Eina_Bool  remember 
)

Set whether the object can remember the last played position.

Note:
This API only serves as indication. System support is required.
Parameters:
[in]objThe object.
[in]remembertrue when the object can remember the last position, false otherwise
const char* elm_video_title_get ( const Efl_Ui_Video *  obj)

Get the title (for instance DVD title) from this emotion object.

This function is only useful when playing a DVD.

Note:
Don't change or free the string returned by this function.
Parameters:
[in]objThe object.
Returns:
A string containing the title.