efl/src/lib/elementary/elm_video.eo

124 lines
3.4 KiB
Plaintext
Raw Normal View History

class Elm.Video (Elm.Layout, Efl.File, Elm.Interface.Atspi_Widget_Action)
2014-03-27 01:21:26 -07:00
{
legacy_prefix: elm_video;
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 {
2015-07-02 06:37:55 -07:00
[[Set the audio level of an Elm_Video object.]]
2014-03-27 01:21:26 -07:00
}
get {
2015-07-02 06:37:55 -07:00
[[Get the audio level of the current video.]]
2014-03-27 01:21:26 -07:00
}
values {
2015-07-02 06:37:55 -07:00
volume: double; [[The audio level.]]
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 {
2015-07-02 06:37:55 -07:00
[[Set whether the object can remember the last played position.
2014-03-27 01:21:26 -07:00
2015-07-02 06:37:55 -07:00
Note: This API only serves as indication. System support is
required.
]]
2014-03-27 01:21:26 -07:00
}
get {
2015-07-02 06:37:55 -07:00
[[Set whether the object can remember the last played position.
2014-03-27 01:21:26 -07:00
2015-07-02 06:37:55 -07:00
Note: This API only serves as indication. System support is
required.
]]
2014-03-27 01:21:26 -07:00
}
values {
2015-07-02 06:37:55 -07:00
remember: bool; [[The value.]]
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 {
2015-07-02 06:37:55 -07:00
[[Set the current position (in seconds) to be played in the
Elm_Video object.]]
2014-03-27 01:21:26 -07:00
}
get {
2015-07-02 06:37:55 -07:00
[[Get the current position (in seconds) being played in the
Elm_Video object.]]
2014-03-27 01:21:26 -07:00
}
values {
2015-07-02 06:37:55 -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 {
2015-07-02 06:37:55 -07:00
[[Change the mute state of the Elm_Video object.]]
2014-03-27 01:21:26 -07:00
}
get {
2015-07-02 06:37:55 -07:00
[[Get whether audio is muted.]]
2014-03-27 01:21:26 -07:00
}
values {
2015-07-02 06:37:55 -07:00
mute: bool; [[The 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 {
2015-07-02 06:37:55 -07:00
[[Is the video actually playing.
2014-03-27 01:21:26 -07:00
2015-07-02 06:37:55 -07:00
You should consider watching event on the object instead of
polling the object state.
]]
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 {
2015-07-02 06:37:55 -07:00
[[Get the total playing time (in seconds) of the Elm_Video object.]]
return: double; [[The total duration (in seconds) of the media file.]]
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 {
2015-07-02 06:37:55 -07:00
[[Get the underlying Emotion object.]]
return: Evas.Object; [[the underlying Emotion 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 {
2015-07-02 06:37:55 -07:00
[[Is it possible to seek inside the video.]]
return: bool; [[true if is possible to seek inside the video.]]
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 {
2015-07-02 06:37:55 -07:00
[[Get the title (for instance DVD title) from this emotion object.
2014-03-27 01:21:26 -07:00
2015-07-02 06:37:55 -07:00
This function is only useful when playing a DVD.
2014-03-27 01:21:26 -07:00
2015-07-02 06:37:55 -07:00
Note: Don't change or free the string returned by this function.
]]
return: const(char)*; [[A string containing the title.]]
2014-03-27 01:21:26 -07:00
}
}
play {
2015-07-02 06:37:55 -07:00
[[Start playing a video.]]
2014-03-27 01:21:26 -07:00
}
pause {
2015-07-02 06:37:55 -07:00
[[Pause a video.]]
2014-03-27 01:21:26 -07:00
}
stop {
2015-07-02 06:37:55 -07:00
[[Stop a video.]]
2014-03-27 01:21:26 -07:00
}
}
implements {
class.constructor;
Eo.Base.constructor;
2014-07-22 08:37:57 -07:00
Efl.File.file.set;
Efl.File.file.get;
Evas.Object.Smart.add;
Evas.Object.Smart.del;
Elm.Widget.focus_next_manager_is;
Elm.Widget.focus_direction_manager_is;
Elm.Widget.event;
Elm.Layout.sizing_eval;
Elm.Interface.Atspi_Widget_Action.elm_actions.get;
2014-03-27 01:21:26 -07:00
}
}