开发者

How do I handle the seek bar using javascript in HTML5 audio tag?

开发者 https://www.devze.com 2023-01-12 07:29 出处:网络
Can anyone help me create a javascript/jquery function to control the HTML5 audio tag control seekbar?? (Or suggest me a web resource from where I can learn).

Can anyone help me create a javascript/jquery function to control the HTML5 audio tag control seekbar?? (Or suggest me a web resource from where I can learn). I want to customize the looks of the default controls and so I want to handle th开发者_如何转开发e progress in a different <div>. How can I achieve that?


Use any JavaScript slider control that you want and do two things:

  • listen for changes (clicks) and set audioNode.currentTime
  • conversely, periodically set the slider's value to audioNode.currentTime
0

精彩评论

暂无评论...
验证码 换一张
取 消