[SAMPLE APP][Stream-player] Playback progress
authorAgnieszka Janowicz <a.janowicz@samsung.com>
Mon, 21 Dec 2015 15:42:07 +0000 (16:42 +0100)
committerMichal Skorupinski <m.skorupinsk@samsung.com>
Mon, 18 Jan 2016 15:25:45 +0000 (16:25 +0100)
Change-Id: I95f4ed8a5a40abbe45d723de2d50dbc03bd49551
Signed-off-by: Michal Skorupinski <m.skorupinsk@samsung.com>
Signed-off-by: Agnieszka Janowicz <a.janowicz@samsung.com>
org.tizen.sampledescriptions/html/mobile_n/stream-player-mn.html

index c52e911..ee1e122 100644 (file)
@@ -296,8 +296,10 @@ static Eina_Bool __add_album_art(void)
                                <ul>
                                        <li>Elm_Slider - used to set seek position;</li>
                                        <li>Elm_Button - used to stop the playback;</li>
-                                       <li>Elm_Checkbox - used to toggle the pause mode;</li>
+                                       <li>Elm_Button - used to toggle the pause mode;</li>
                                </ul>
+
+                               <p>The Player API does not provide a callback to be invoked when playback progress changes. In order to update the progress slider, an <span style="font-family: Courier New,Courier,monospace">Ecore_Timer</span> is used. The current playback position is read using the <span style="font-family: Courier New,Courier,monospace">player_model_get_progress()</span> function. Check <a href="#model-playback-control">playback-controls</a> for details.</p>
                        </td>
                        <td>
                                <pre class="prettyprint">
@@ -589,7 +591,7 @@ player_error_e player_model_play_file(const char *file_path)
 
 <!-- ********************************************************************************** -->
 
-<h5>Playback control</h5>
+<h5 id="model-playback-control">Playback control</h5>
 <p>The Player API provides the following basic playback control options:</p>
 <ul>
        <li>play,</li>
@@ -597,7 +599,7 @@ player_error_e player_model_play_file(const char *file_path)
        <li>stop.</li>
 </ul>
 
-<p>The options above change the state of the player (refer the Figure 4 for details) and can be accessed by the user using the <a href="#playback-options-section-layout">playback options section</a> 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 <span style="font-family: Courier New,Courier,monospace">player_get_duration()</span> can be used to get the length of the file and set the maximum value of the mentioned slider.</p>
+<p>The options above change the state of the player (refer the Figure 4 for details) and can be accessed by the user using the <a href="#playback-options-section-layout">playback options section</a> 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 <span style="font-family: Courier New,Courier,monospace">player_get_duration()</span> function can be used to get the length of the file and set the maximum value of the mentioned slider.</p>
 
 <p>Apart from the basic playback control options, the following features are also implemented:</p>
 <ul>