How to play an audio track without using "controls" |
How to play an audio track without using "controls" |
giomach |
Jun 19 2021, 12:07 PM
Post
#1
|
Group: Members Posts: 4 Joined: 19-June 21 Member No.: 27,985 |
I have an audio file (mp3), and I want to allow the web user to choose to play a section (track) of it.
I could split the audio file into many separate files, but I have begun to look at the <track> sub-element of the <audio> element of HTML5. Many webpages tell us how to formulate this element, eg. to give the start time of each track in a .vtt file, and that is fine. But I don't want "controls", I want to display a list of tracks, and let the user decide which track to play, and click an icon to play it. It must be blindingly obvious how to do this, but I can't find the HTML statement to start up a numbered track. Thanks for any hints. |
fspade |
Jan 24 2022, 07:25 AM
Post
#2
|
Group: Members Posts: 8 Joined: 22-January 22 Member No.: 28,234 |
Sorry, I didn't mean tracks like you do now; I meant individuel mp3 files.
|
Lo-Fi Version | Time is now: 25th September 2024 - 09:44 AM |