2015-04-22 04:43:05 -07:00
|
|
|
class Elm.Video (Elm.Layout, Efl.File, Elm_Interface_Atspi_Widget_Action)
|
2014-03-27 01:21:26 -07:00
|
|
|
{
|
|
|
|
eo_prefix: elm_obj_video;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
|
|
|
@property audio_level {
|
2014-03-27 01:21:26 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
@brief Set the audio level of an Elm_Video object.
|
|
|
|
|
|
|
|
@ingroup Video */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Get the audio level of the current video.
|
|
|
|
|
|
|
|
@return the current audio level.
|
|
|
|
|
|
|
|
@ingroup Video */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
volume: double; /*@ The new audio volume. */
|
2014-03-27 01:21:26 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property remember_position {
|
2014-03-27 01:21:26 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
@brief Set whether the object can remember the last played position.
|
|
|
|
|
|
|
|
@note This API only serves as indication. System support is required.
|
|
|
|
|
|
|
|
@ingroup Video */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Set whether the object can remember the last played position.
|
|
|
|
|
|
|
|
@return whether the object remembers the last played position (@c EINA_TRUE)
|
|
|
|
or not.
|
|
|
|
|
|
|
|
@note This API only serves as indication. System support is required.
|
|
|
|
|
|
|
|
@ingroup Video */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
remember: bool; /*@ the last played position of the Elm_Video object. */
|
2014-03-27 01:21:26 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property play_position {
|
2014-03-27 01:21:26 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
@brief Set the current position (in seconds) to be played in the
|
|
|
|
Elm_Video object.
|
|
|
|
|
|
|
|
@ingroup Video */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Get the current position (in seconds) being played in the
|
|
|
|
Elm_Video object.
|
|
|
|
|
|
|
|
@return The time (in seconds) since the beginning of the media file.
|
|
|
|
|
|
|
|
@ingroup Video */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
position: double; /*@ The time (in seconds) since the beginning of the media file. */
|
2014-03-27 01:21:26 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property audio_mute {
|
2014-03-27 01:21:26 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
@brief Change the mute state of the Elm_Video object.
|
|
|
|
|
|
|
|
@ingroup Video */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Is the audio muted.
|
|
|
|
|
|
|
|
@return @c EINA_TRUE if the audio is muted.
|
|
|
|
|
|
|
|
@ingroup Video */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-18 08:16:08 -07:00
|
|
|
mute: bool; /*@ The new mute state. */
|
2014-03-27 01:21:26 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property is_playing {
|
2014-03-27 01:21:26 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Is the video actually playing.
|
|
|
|
|
|
|
|
@return @c EINA_TRUE if the video is actually playing.
|
|
|
|
|
|
|
|
You should consider watching event on the object instead of polling
|
|
|
|
the object state.
|
|
|
|
|
|
|
|
@ingroup Video */
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-27 01:21:26 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property play_length {
|
2014-03-27 01:21:26 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Get the total playing time (in seconds) of the Elm_Video object.
|
|
|
|
|
|
|
|
@return The total duration (in seconds) of the media file.
|
|
|
|
|
|
|
|
@ingroup Video */
|
2014-08-11 07:46:11 -07:00
|
|
|
return: double;
|
2014-03-27 01:21:26 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property emotion {
|
2014-03-27 01:21:26 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Get the underlying Emotion object.
|
|
|
|
|
|
|
|
@return the underlying Emotion object.
|
|
|
|
|
|
|
|
@ingroup Video */
|
2015-06-26 07:36:43 -07:00
|
|
|
return: Evas.Object *;
|
2014-03-27 01:21:26 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property is_seekable {
|
2014-03-27 01:21:26 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Is it possible to seek inside the video.
|
|
|
|
|
|
|
|
@return @c EINA_TRUE if is possible to seek inside the video.
|
|
|
|
|
|
|
|
@ingroup Video */
|
2014-08-11 07:46:11 -07:00
|
|
|
return: bool;
|
2014-03-27 01:21:26 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property title {
|
2014-03-27 01:21:26 -07:00
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
@brief Get the title (for instance DVD title) from this emotion object.
|
|
|
|
|
|
|
|
@return A string containing the title.
|
|
|
|
|
|
|
|
This function is only useful when playing a DVD.
|
|
|
|
|
|
|
|
@note Don't change or free the string returned by this function.
|
|
|
|
|
|
|
|
@ingroup Video */
|
2014-08-11 07:46:11 -07:00
|
|
|
return: const(char)*;
|
2014-03-27 01:21:26 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
play {
|
|
|
|
/*@
|
|
|
|
@brief Start to play the video
|
|
|
|
|
|
|
|
Start to play the video and cancel all suspend state.
|
|
|
|
|
|
|
|
@ingroup Video */
|
|
|
|
|
|
|
|
}
|
|
|
|
pause {
|
|
|
|
/*@
|
|
|
|
@brief Pause the video
|
|
|
|
|
|
|
|
Pause the video and start a timer to trigger suspend mode.
|
|
|
|
|
|
|
|
@ingroup Video */
|
|
|
|
|
|
|
|
}
|
|
|
|
stop {
|
|
|
|
/*@
|
|
|
|
@brief Stop the video
|
|
|
|
|
|
|
|
Stop the video and put the emotion in deep sleep mode.
|
|
|
|
|
|
|
|
@ingroup Video */
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2014-06-27 15:36:05 -07:00
|
|
|
Eo.Base.constructor;
|
2014-07-22 08:37:57 -07:00
|
|
|
Efl.File.file.set;
|
2015-03-19 05:08:23 -07:00
|
|
|
Efl.File.file.get;
|
2014-06-27 15:36:05 -07:00
|
|
|
Evas.Object_Smart.add;
|
|
|
|
Evas.Object_Smart.del;
|
2015-04-22 04:33:10 -07:00
|
|
|
Elm.Widget.focus_next_manager_is;
|
|
|
|
Elm.Widget.focus_direction_manager_is;
|
|
|
|
Elm.Widget.event;
|
2015-04-22 04:37:40 -07:00
|
|
|
Elm.Layout.sizing_eval;
|
2014-07-25 01:33:19 -07:00
|
|
|
Elm_Interface_Atspi_Widget_Action.elm_actions.get;
|
2014-03-27 01:21:26 -07:00
|
|
|
}
|
|
|
|
events {
|
|
|
|
focused;
|
|
|
|
unfocused;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|