Functions

Evas_Object * elm_player_add (Evas_Object *parent)
 Add a new Elm_Player object to the given parent Elementary (container) object.
Evas_Object * elm_video_add (Evas_Object *parent)
 Add a new Elm_Video object to the given parent Elementary (container) object.
Eina_Bool elm_video_file_set (Eo *obj, const char *filename)
 Define the file or URI that will be the video source.
void elm_video_file_get (Eo *obj, const char **filename)
 Get the file or URI that is used as the video source.
void elm_video_audio_level_set (Evas_Object *obj, double volume)
 Set the audio level of an Elm_Video object.
double elm_video_audio_level_get (const Evas_Object *obj)
 Get the audio level of the current video.
void elm_video_audio_mute_set (Evas_Object *obj, Eina_Bool mute)
 Change the mute state of the Elm_Video object.
Eina_Bool elm_video_audio_mute_get (const Evas_Object *obj)
 Get whether audio is muted.
double elm_video_play_length_get (const Evas_Object *obj)
 Get the total playing time (in seconds) of the Elm_Video object.
Eina_Bool elm_video_is_seekable_get (const Evas_Object *obj)
 Is it possible to seek inside the video.
void elm_video_play_position_set (Evas_Object *obj, double position)
 Set the current position (in seconds) to be played in the Elm_Video object.
double elm_video_play_position_get (const Evas_Object *obj)
 Get the current position (in seconds) being played in the Elm_Video object.
Eina_Bool elm_video_is_playing_get (Evas_Object *obj)
 Get whether the video actually playing.
void elm_video_play (Evas_Object *obj)
 Start playing a video.
void elm_video_stop (Evas_Object *obj)
 Stop a video.
void elm_video_pause (Evas_Object *obj)
 Pause a video.

Detailed Description

Function Documentation

◆ elm_player_add()

Evas_Object * elm_player_add ( Evas_Object * parent)

Add a new Elm_Player object to the given parent Elementary (container) object.

Parameters
parentThe parent object
Returns
a new player widget handle or NULL, on errors.

This function inserts a new player widget on the canvas.

See also
elm_object_part_content_set()

References EINA_SAFETY_ON_NULL_RETURN_VAL, and elm_player_add().

Referenced by elm_player_add().

◆ elm_video_add()

Evas_Object * elm_video_add ( Evas_Object * parent)

Add a new Elm_Video object to the given parent Elementary (container) object.

Parameters
parentThe parent object
Returns
a new video widget handle or NULL, on errors.

This function inserts a new video widget on the canvas.

See also
elm_video_file_set()

References EINA_SAFETY_ON_NULL_RETURN_VAL, and elm_video_add().

Referenced by elm_video_add().

◆ elm_video_file_set()

Eina_Bool elm_video_file_set ( Eo * obj,
const char * filename )

Define the file or URI that will be the video source.

Returns
EINA_TRUE on success, EINA_FALSE otherwise

This function will explicitly define a file or URI as a source for the video of the Elm_Video object.

See also
elm_video_add()
elm_player_add()
Parameters
[in]filenameThe file or URI to target. 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).

References elm_video_file_set().

Referenced by elm_video_file_set().

◆ elm_video_file_get()

void elm_video_file_get ( Eo * obj,
const char ** filename )

Get the file or URI that is used as the video source.

Parameters
filenameThe file or URI.
Since
1.14

References elm_video_file_get().

Referenced by elm_video_file_get().

◆ elm_video_audio_level_set()

void elm_video_audio_level_set ( Evas_Object * obj,
double volume )

Set the audio level of an Elm_Video object.

Parameters
[in]volumeThe audio level.

References elm_video_audio_level_set().

Referenced by elm_video_audio_level_set().

◆ elm_video_audio_level_get()

double elm_video_audio_level_get ( const Evas_Object * obj)

Get the audio level of the current video.

Returns
The audio level.

References elm_video_audio_level_get().

Referenced by elm_video_audio_level_get().

◆ elm_video_audio_mute_set()

void elm_video_audio_mute_set ( Evas_Object * obj,
Eina_Bool mute )

Change the mute state of the Elm_Video object.

Parameters
[in]muteThe mute state.

References elm_video_audio_mute_set().

Referenced by elm_video_audio_mute_set().

◆ elm_video_audio_mute_get()

Eina_Bool elm_video_audio_mute_get ( const Evas_Object * obj)

Get whether audio is muted.

Returns
The mute state.

References elm_video_audio_mute_get().

Referenced by elm_video_audio_mute_get().

◆ elm_video_play_length_get()

double elm_video_play_length_get ( const Evas_Object * obj)

Get the total playing time (in seconds) of the Elm_Video object.

Returns
The total duration (in seconds) of the media file.

References elm_video_play_length_get().

Referenced by elm_video_play_length_get().

◆ elm_video_is_seekable_get()

Eina_Bool elm_video_is_seekable_get ( const Evas_Object * obj)

Is it possible to seek inside the video.

Returns
true if is possible to seek inside the video.

References elm_video_is_seekable_get().

Referenced by elm_video_is_seekable_get().

◆ elm_video_play_position_set()

void elm_video_play_position_set ( Evas_Object * obj,
double position )

Set the current position (in seconds) to be played in the Elm_Video object.

Parameters
[in]positionThe time (in seconds) since the beginning of the media file.

References elm_video_play_position_set().

Referenced by elm_video_play_position_set().

◆ elm_video_play_position_get()

double elm_video_play_position_get ( const Evas_Object * obj)

Get the current position (in seconds) being played in the Elm_Video object.

Returns
The time (in seconds) since the beginning of the media file.

References elm_video_play_position_get().

Referenced by elm_video_play_position_get().

◆ elm_video_is_playing_get()

Eina_Bool elm_video_is_playing_get ( Evas_Object * obj)

Get whether the video actually playing.

You should consider watching event on the object instead of polling the object state.

Returns
true if the video is playing, false otherwise.

References elm_video_is_playing_get().

Referenced by elm_video_is_playing_get().

◆ elm_video_play()

void elm_video_play ( Evas_Object * obj)

Start playing a video.

References EINA_FALSE, EINA_TRUE, and elm_video_play().

Referenced by elm_video_play().

◆ elm_video_stop()

void elm_video_stop ( Evas_Object * obj)

Stop a video.

References EINA_FALSE, and elm_video_stop().

Referenced by elm_video_stop().

◆ elm_video_pause()

void elm_video_pause ( Evas_Object * obj)

Pause a video.

References EINA_TRUE, and elm_video_pause().

Referenced by elm_video_pause().