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.
These widgets emit the following signals, besides the ones sent from LayoutClass:
Bases: efl.elementary.__init__.LayoutClass
This is the class that actually implements the widget.
Parameters: |
|
---|
The audio level of the current video.
Type: | float |
---|
Is the audio muted.
Type: | bool |
---|
When the video has received focus.
New in version 1.8.
When the video has lost focus.
New in version 1.8.
The underlying Emotion object.
Type: | efl.emotion.Object |
---|
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).
Type: | string |
---|---|
Raises 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
Is the video actually playing.
You should consider watching event on the object instead of polling the object state.
Type: | bool |
---|
Is it possible to seek inside the video.
Type: | bool |
---|
Pause the video and start a timer to trigger suspend mode.
Start to play the video and cancel all suspend state.
The total playing time (in seconds) of the Video object.
Type: | float |
---|
Get the current position (in seconds) being played in the Video object.
Type: | float |
---|
Whether the object can remember the last played position.
Note
This API only serves as indication. System support is required.
Type: | bool |
---|
Stop the video and put the emotion in deep sleep mode.
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.
Type: | string |
---|
Bases: efl.elementary.__init__.LayoutClass
Player is a video player that need to be linked with a Video.
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:
Default content parts of the player widget that you can use for are:
Parameters: |
|
---|
When the player has received focus.
New in version 1.8.
the user clicked the forward button.
the user clicked the info button.
the user clicked the next button.
the user clicked the pause button.
the user clicked the play button.
the user clicked the prev button.
the user clicked the rewind button.
the user clicked the stop button.
When the player has lost focus.
New in version 1.8.