From: Agnieszka Janowicz Date: Mon, 21 Dec 2015 15:42:07 +0000 (+0100) Subject: [SAMPLE APP][Stream-player] Playback progress X-Git-Tag: tizen_3.0/TD_SYNC/20161201~201^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90612d8e0db5968b93cec666bafd2ac1e596835f;p=sdk%2Fonline-doc.git [SAMPLE APP][Stream-player] Playback progress Change-Id: I95f4ed8a5a40abbe45d723de2d50dbc03bd49551 Signed-off-by: Michal Skorupinski Signed-off-by: Agnieszka Janowicz --- diff --git a/org.tizen.sampledescriptions/html/mobile_n/stream-player-mn.html b/org.tizen.sampledescriptions/html/mobile_n/stream-player-mn.html index c52e911..ee1e122 100644 --- a/org.tizen.sampledescriptions/html/mobile_n/stream-player-mn.html +++ b/org.tizen.sampledescriptions/html/mobile_n/stream-player-mn.html @@ -296,8 +296,10 @@ static Eina_Bool __add_album_art(void)
  • Elm_Slider - used to set seek position;
  • Elm_Button - used to stop the playback;
  • -
  • Elm_Checkbox - used to toggle the pause mode;
  • +
  • Elm_Button - used to toggle the pause mode;
+ +

The Player API does not provide a callback to be invoked when playback progress changes. In order to update the progress slider, an Ecore_Timer is used. The current playback position is read using the player_model_get_progress() function. Check playback-controls for details.

@@ -589,7 +591,7 @@ player_error_e player_model_play_file(const char *file_path)
 
 
 
-
Playback control
+
Playback control

The Player API provides the following basic playback control options:

  • play,
  • @@ -597,7 +599,7 @@ player_error_e player_model_play_file(const char *file_path)
  • stop.
-

The options above change the state of the player (refer the Figure 4 for details) and can be accessed by the user using the playback options section widgets. There is also a seek option available. The view part provides the user with a slider to adjust the playback's progress. Note that the player_get_duration() can be used to get the length of the file and set the maximum value of the mentioned slider.

+

The options above change the state of the player (refer the Figure 4 for details) and can be accessed by the user using the playback options section widgets. There is also a seek option available. The view part provides the user with a slider to adjust the playback's progress. Note that the player_get_duration() function can be used to get the length of the file and set the maximum value of the mentioned slider.

Apart from the basic playback control options, the following features are also implemented: