whatever123
whatever123

Reputation: 179

Progress slider for an audio player that's draggable

I am not sure what element would be best for the following purpose:

I made a audio player using Web Audio API in Javascript that shows the progress of the sound using the HTML5 progress tag. However, now I want to make it clickable, so that when I click it I get the value of where I can clicked and I adjust the sound file accordingly. I wanted to know which element to use. I am thinking jQuery slider UI.

Upvotes: 0

Views: 1769

Answers (1)

achudars
achudars

Reputation: 1506

Q. Which element to use?

A. Use jQuery UI slider

Q. How to make it draggable?

A. Use .draggable() from jQuery UI

Q. How to get the value where I clicked?

A. http://docs.jquery.com/UI/Slider#method-value and check https://stackoverflow.com/a/11032004/1912213

Upvotes: 2

Related Questions