/    Sign up×
Community /Pin to ProfileBookmark

setTimeOut with mp3

I have to tell an mp3 file to start after another one finishes and I thought I can do that by the Timeout function but obviously I don’t know how to write it.
I have
<OBJECT ID=”Player” WIDTH=0 HEIGHT=0
CLASSID=”CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95″>
<PARAM NAME=”BufferingTime” VALUE=”10″>
<PARAM NAME=”AudioStream” VALUE=”-1″>
<PARAM NAME=”Volume” VALUE=”-400″>
<PARAM NAME=”FileName” VALUE=”media/37.mp3″>
</OBJECT>

in the body part of the page.
I want to put the same about the second mp3 in a function and to call this function in a timeout.

How can I do this or is there anotherway to start the second mp3 after the end of the first.

Sorry for the dumb quesion but I’m quite new to JavaScript.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Warren86Mar 23.2005 — Create a playlist file, like this:

<ASX version ="3.0">

<Entry>

<Ref href="song1.mp3"/>

</Entry>

<Entry>

<Ref href="song2.mp3"/>

</Entry>

<Entry>

<Ref href="song3.mp3"/>

</Entry>

<Entry>

<Ref href="song4.mp3"/>

</Entry>

<Entry>

<Ref href="song5.mp3"/>

</Entry>

</ASX>

Copy and paste the above code into a blank NotePad document, adjust the number of Entries as necessary, then save the file as PlayList.wax


--------------------
And here's code that starts playing the playlist file, onload:

<HTML>

<Body>

<OBJECT ID="Player" WIDTH=170 HEIGHT=45

CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95">

<PARAM NAME="BufferingTime" VALUE="10">

<PARAM NAME="AudioStream" VALUE="-1">

<PARAM NAME="Volume" VALUE="-400">

<PARAM NAME="Filename" VALUE="playList.wax">

</OBJECT>

</Body>

</HTML>
Copy linkTweet thisAlerts:
@gebezisauthorMar 23.2005 — Thank you very much
Copy linkTweet thisAlerts:
@Warren86Mar 23.2005 — You're welcome.
×

Success!

Help @gebezis spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.9,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...