The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> "Play All" mp3 files
JeffLeites
post Mar 22 2018, 09:25 PM
Post #1





Group: Members
Posts: 6
Joined: 21-September 13
Member No.: 19,767



I'm working on a page that contains a bunch of mp3 files. Right now I have the page showing a list of them, and using Audio Controls, I put a small player next to each one. I'd like to have the option of having one player that would play them all, from the first tune, through the last. I know I could do it by duplicating everything into one mp3 file, but I don't want to do that. Is there any other (simple) way to make all the mp3s play in sequence?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Mar 23 2018, 12:47 AM
Post #2


This is My Life
*******

Group: Members
Posts: 1,491
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



You would need a server side language like PHP, ASP or etc... to read the directory and build an array of mp3 files. You then pass that array to Javascript. Or, you could hard code the array (all file paths and names) in Javascript, but you have to maintain the array. Now you just loop the array and play each mp3 in the array.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
JeffLeites
post Mar 23 2018, 05:44 PM
Post #3





Group: Members
Posts: 6
Joined: 21-September 13
Member No.: 19,767



Thanks Charles. It sounds like a bit much for a long retired COBOL programmer, but when I have some time I'll look into it. I think I might be able to handle the Javascript ;-)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Mar 23 2018, 08:08 PM
Post #4


This is My Life
*******

Group: Members
Posts: 1,491
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



Once you start coding just post back if you have any questions.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
JeffLeites
post Mar 23 2018, 11:22 PM
Post #5





Group: Members
Posts: 6
Joined: 21-September 13
Member No.: 19,767



I found some on-line tutorials on how to do it with JavaScript, but it's going to take me more than half an hour to figure it out :-) TNX again!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 24 2018, 05:10 PM
Post #6


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 17,917
Joined: 9-August 06
Member No.: 6



There are ready made server sides scripts that do what you want and more.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th May 2018 - 02:29 PM