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.
efl.elementary.
Video
(Object parent, *args, **kwargs)¶Bases: efl.elementary.__init__.LayoutClass
parent (efl.evas.Object
) – The parent object
**kwargs – All the remaining keyword arguments are interpreted as properties of the instance
audio_level
¶The audio level of the current video.
float
audio_level_get
¶audio_level_set
¶audio_mute
¶Is the audio muted.
bool
audio_mute_get
¶audio_mute_set
¶emotion
¶The underlying Emotion object.
efl.emotion.Object
emotion_get
¶file
¶Define the file or URI that will be the video source.
Setting this property will explicitly define a file or URI as a source for the video of the Elm_Video object.
Local files can be specified using file://
or by using full file
paths. URI could be remote source of video, like http://
or
local source like WebCam (v4l2://
). (You can use Emotion API to
request and list the available Webcam on your system).
string
RuntimeError – when setting the file/uri fails
Changed in version 1.8: Raises RuntimeError if setting the file/uri fails
Changed in version 1.14: Property is now also readable
file_get
¶file_set
¶is_playing
¶Is the video actually playing.
You should consider watching event on the object instead of polling the object state.
bool
is_playing_get
¶is_seekable
¶Is it possible to seek inside the video.
bool
is_seekable_get
¶pause
¶Pause the video and start a timer to trigger suspend mode.
play
¶Start to play the video and cancel all suspend state.
play_length
¶The total playing time (in seconds) of the Video object.
float
play_length_get
¶play_position
¶Get the current position (in seconds) being played in the Video object.
float
play_position_get
¶play_position_set
¶remember_position
¶Whether the object can remember the last played position.
Note
This API only serves as indication. System support is required.
bool
remember_position_get
¶remember_position_set
¶stop
¶Stop the video and put the emotion in deep sleep mode.
title
¶The title (for instance DVD title) from this emotion object.
This property is only useful when playing a DVD.
Note
Don’t change or free the string returned by this function.
string
title_get
¶efl.elementary.
Player
(Object parent, *args, **kwargs)¶Bases: efl.elementary.__init__.LayoutClass
It takes care of updating its content according to Emotion events and
provides a way to theme itself. It also automatically raises the priority of
the linked Video
so it will use the video decoder, if available. It also
activates the “remember” function on the linked Video
object.
The player widget emits the following signals, besides the ones
sent from LayoutClass
:
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
parent (efl.evas.Object
) – The parent object
**kwargs – All the remaining keyword arguments are interpreted as properties of the instance
callback_forward_clicked_add
¶the user clicked the forward button.
callback_forward_clicked_del
¶callback_info_clicked_add
¶the user clicked the info button.
callback_info_clicked_del
¶callback_next_clicked_add
¶the user clicked the next button.
callback_next_clicked_del
¶callback_pause_clicked_add
¶the user clicked the pause button.
callback_pause_clicked_del
¶callback_play_clicked_add
¶the user clicked the play button.
callback_play_clicked_del
¶callback_prev_clicked_add
¶the user clicked the prev button.
callback_prev_clicked_del
¶callback_rewind_clicked_add
¶the user clicked the rewind button.
callback_rewind_clicked_del
¶callback_stop_clicked_add
¶the user clicked the stop button.
callback_stop_clicked_del
¶