css - Progress Seeking audio location using HTML5 Progress -


i creating audio player of sorts , have run brick wall. have added progress bar updates according song being played.

however, want progress bar clickable , jump time of track when clicked (like every regular player).

<div class="music-stream-wrapper">  <ul class="music-stream">  <li>    <div class="player-wrapper">      <div class="album-art">       <a href="#" title=""><img src="https://i1.sndcdn.com/artworks-000108593302-0ek7n6-t120x120.jpg" alt="" /></a>     </div>      <div class="meta-controls">       <div class="play-controls">         <!-- content -->         <div class="track">           <h4 class="title"><a href="" title="">tail toddle - unknown</a></h4>           <span class="author"><a href="" title="">john.doe</a></span>           <span class="uploaded">a few seconds ago</span>         </div>         <div class="spectrum">           <div class="play-pause-button">             <a href="#" class="play"></a>             <a href="#" class="pause inactive"></a>           </div>           <div class="spectrum-wrapper">             <div id="spectrum_11"></div>             <div class="progress">               <progress value="0" max="1"></progress>             </div>           </div>         </div>       </div>       <div class="intent">         <ul class="buttons">           <li><a href="#" class="like" title="like">like</a></li>           <li><a href="#" class="download" title="download">download</a></li>           <li><a href="#" class="share" title="share">share</a></li>         </ul>         <ul class="meta">           <li><span class="liked">&hearts; 13</span></li>           <li><span class="played">&#9658; 123</span></li>           <li><a href="" class="commented" title="comments"><span>&hearts; 3</span></a></li>                       </ul>       </div>     </div>    </div>  </li>  </ul>  </div>  <audio src="http://tonycuffe.com/mp3/tailtoddle_lo.mp3" id="mocksong"></audio>   

i have created mock player in codepen heres url: view in codepen

i ended using jquery ui slider , updating dynamically track position changed.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -