summaryrefslogtreecommitdiff
path: root/src/lib/emotion
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-12-31 09:53:10 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-12-31 09:53:10 -0500
commit3dc3deba6280349021d877c29362fd80eaed57aa (patch)
tree2feef6e5a917335633f0975219ef72b4528cbde1 /src/lib/emotion
parentbaa1e6553bc96a1f099c1aadc1f5fcfd2295f520 (diff)
Efl.Player: Add setter of playback_progress
Summary: The setter of Efl.Player.playback_progress is implemented in each class below. Efl.Ui.Animation_View Efl.Ui.Image Efl.Ui.Image_Zoomable Efl.Canvas.Video ref T8476 Depends on D10915 Test Plan: N/A Reviewers: Hermet, bu5hm4n, kimcinoo, Jaehyun_Cho, segfaultxavi, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8476 Differential Revision: https://phab.enlightenment.org/D10931
Diffstat (limited to '')
-rw-r--r--src/lib/emotion/efl_canvas_video.eo2
-rw-r--r--src/lib/emotion/emotion_smart.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/emotion/efl_canvas_video.eo b/src/lib/emotion/efl_canvas_video.eo
index 162e0fcc27..0f2ffa7435 100644
--- a/src/lib/emotion/efl_canvas_video.eo
+++ b/src/lib/emotion/efl_canvas_video.eo
@@ -60,7 +60,7 @@ class @beta Efl.Canvas.Video extends Efl.Canvas.Group
60 Efl.Player.playing { get; set; } 60 Efl.Player.playing { get; set; }
61 Efl.Player.paused { get; set; } 61 Efl.Player.paused { get; set; }
62 Efl.Player.playback_position { get; set; } 62 Efl.Player.playback_position { get; set; }
63 Efl.Player.playback_progress { get; } 63 Efl.Player.playback_progress { get; set; }
64 Efl.Audio_Control.volume { get; set; } 64 Efl.Audio_Control.volume { get; set; }
65 Efl.Audio_Control.mute { get; set; } 65 Efl.Audio_Control.mute { get; set; }
66 Efl.Playable.length { get; } 66 Efl.Playable.length { get; }
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index a642386fbe..9f723e5bef 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -1217,6 +1217,13 @@ _efl_canvas_video_efl_player_playback_progress_get(const Eo *obj EINA_UNUSED, Ef
1217 return sd->progress.stat; 1217 return sd->progress.stat;
1218} 1218}
1219 1219
1220EOLIAN static void
1221_efl_canvas_video_efl_player_playback_progress_set(Eo *obj, Efl_Canvas_Video_Data *sd EINA_UNUSED, double progress)
1222{
1223 const char *info = emotion_object_progress_info_get((const Evas_Object*)obj);
1224 _emotion_progress_set(obj, (char*)info, progress);
1225}
1226
1220EOLIAN static double 1227EOLIAN static double
1221_efl_canvas_video_efl_playable_length_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) 1228_efl_canvas_video_efl_playable_length_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
1222{ 1229{