forked from enlightenment/efl
efl/player: play_speed -> playback_speed
no functional changes ref T7877 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10115
This commit is contained in:
parent
3d3cdc5955
commit
b730443e2d
|
@ -1215,13 +1215,13 @@ EAPI void
|
|||
edje_object_transition_duration_factor_set(Evas_Object *obj, double scale)
|
||||
{
|
||||
if (scale <= 0.0) return;
|
||||
efl_player_play_speed_set(obj, 1.0/scale);
|
||||
efl_player_playback_speed_set(obj, 1.0/scale);
|
||||
}
|
||||
|
||||
EAPI double
|
||||
edje_object_transition_duration_factor_get(const Evas_Object *obj)
|
||||
{
|
||||
double speed = efl_player_play_speed_get(obj);
|
||||
double speed = efl_player_playback_speed_get(obj);
|
||||
|
||||
if (speed <= 0.0) speed = 1.0;
|
||||
return 1.0/speed;
|
||||
|
|
|
@ -588,14 +588,14 @@ _efl_canvas_layout_efl_player_paused_get(const Eo *obj EINA_UNUSED, Edje *ed)
|
|||
}
|
||||
|
||||
EOLIAN void
|
||||
_efl_canvas_layout_efl_player_play_speed_set(Eo *obj EINA_UNUSED, Edje *pd , double speed)
|
||||
_efl_canvas_layout_efl_player_playback_speed_set(Eo *obj EINA_UNUSED, Edje *pd , double speed)
|
||||
{
|
||||
if (speed <= 0.0) speed = 1.0;
|
||||
pd->duration_scale = 1.0/speed;
|
||||
}
|
||||
|
||||
EOLIAN double
|
||||
_efl_canvas_layout_efl_player_play_speed_get(const Eo *obj EINA_UNUSED, Edje *pd)
|
||||
_efl_canvas_layout_efl_player_playback_speed_get(const Eo *obj EINA_UNUSED, Edje *pd)
|
||||
{
|
||||
return 1.0/pd->duration_scale;
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ class @beta Efl.Canvas.Layout extends Efl.Canvas.Group implements Efl.File, Efl.
|
|||
|
||||
If animations are disabled, transitions between states (as
|
||||
defined in EDC) are then instantaneous. This is conceptually similar
|
||||
to setting the @Efl.Player.play_speed to an infinitely high
|
||||
to setting the @Efl.Player.playback_speed to an infinitely high
|
||||
value.
|
||||
]]
|
||||
get {
|
||||
|
@ -128,6 +128,6 @@ class @beta Efl.Canvas.Layout extends Efl.Canvas.Group implements Efl.File, Efl.
|
|||
Efl.Observer.update;
|
||||
Efl.Playable.playable { get; }
|
||||
Efl.Player.paused { get; set; }
|
||||
Efl.Player.play_speed { get; set; }
|
||||
Efl.Player.playback_speed { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ typedef Eo Efl_Canvas_Layout;
|
|||
*
|
||||
* If animations are disabled, transitions between states (as defined in EDC)
|
||||
* are then instantaneous. This is conceptually similar to setting the
|
||||
* @ref Efl.Player.play_speed to an infinitely high value.
|
||||
* @ref Efl.Player.playback_speed to an infinitely high value.
|
||||
*
|
||||
* Start or stop animating this object.
|
||||
*
|
||||
|
@ -41,7 +41,7 @@ EAPI void edje_object_animation_set(Efl_Canvas_Layout *obj, Eina_Bool on);
|
|||
*
|
||||
* If animations are disabled, transitions between states (as defined in EDC)
|
||||
* are then instantaneous. This is conceptually similar to setting the
|
||||
* @ref Efl.Player.play_speed to an infinitely high value.
|
||||
* @ref Efl.Player.playback_speed to an infinitely high value.
|
||||
*
|
||||
* Get the current state of animation, @c true by default.
|
||||
*
|
||||
|
|
|
@ -69,7 +69,7 @@ interface @beta Efl.Player
|
|||
progress: double; [[The progress within the [0, 1] range.]]
|
||||
}
|
||||
}
|
||||
@property play_speed {
|
||||
@property playback_speed {
|
||||
[[Control the play speed of the media file.
|
||||
|
||||
This function control the speed with which the media file will
|
||||
|
|
|
@ -367,7 +367,7 @@ _efl_canvas_animation_player_efl_player_progress_get(const Eo *eo_obj EINA_UNUSE
|
|||
}
|
||||
|
||||
EOLIAN static void
|
||||
_efl_canvas_animation_player_efl_player_play_speed_set(Eo *eo_obj EINA_UNUSED,
|
||||
_efl_canvas_animation_player_efl_player_playback_speed_set(Eo *eo_obj EINA_UNUSED,
|
||||
Efl_Canvas_Animation_Player_Data *pd,
|
||||
double play_speed)
|
||||
{
|
||||
|
@ -378,7 +378,7 @@ _efl_canvas_animation_player_efl_player_play_speed_set(Eo *eo_obj EINA_UNUSED,
|
|||
}
|
||||
|
||||
EOLIAN static double
|
||||
_efl_canvas_animation_player_efl_player_play_speed_get(const Eo *eo_obj EINA_UNUSED,
|
||||
_efl_canvas_animation_player_efl_player_playback_speed_get(const Eo *eo_obj EINA_UNUSED,
|
||||
Efl_Canvas_Animation_Player_Data *pd)
|
||||
{
|
||||
return pd->play_speed;
|
||||
|
|
|
@ -40,7 +40,7 @@ class @beta Efl.Canvas.Animation_Player extends Efl.Object implements Efl.Player
|
|||
Efl.Playable.playable { get; }
|
||||
Efl.Player.playback_position { get; set; }
|
||||
Efl.Player.progress { get;}
|
||||
Efl.Player.play_speed { get; set; }
|
||||
Efl.Player.playback_speed { get; set; }
|
||||
//Efl.Player.volume { get; set; }
|
||||
//Efl.Player.mute { get; set; }
|
||||
Efl.Playable.length { get; }
|
||||
|
|
Loading…
Reference in New Issue