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: 2 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, 09:46 AM
Post
#2
|
Group: Members Posts: 8 Joined: 22-January 22 Member No.: 28,234 |
It works! I love it.
|
pandy |
Jan 24 2022, 09:57 AM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,737 Joined: 9-August 06 Member No.: 6 |
We aim to please.
|
Lo-Fi Version | Time is now: 16th June 2024 - 09:33 AM |