|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
Music and javascript
hello,
is there any atrubutes to a <object> or a <embed> that will tell you... when the music is done playing or after it is finished i tried having an object with the name/id of Player and tried this... Player.playing or window.document.Player.playing stuff like that HELP!!!!!!!!!!11 |
|
#2
|
||||
|
||||
|
currently im having it time off by a setTimeout(func,1000); but that works only if the load time is within a sertin amount of time, because javascript doesnt wait for it to load, it just starts so therefore causing 2 different load times.
colton22 can someone help? |
|
#3
|
||||
|
||||
|
done playing
I haven't tried it, but you could try using the "complete" property. The reliability of using complete is a bit sketchy, but maybe something like
Code:
if(document.getElementById('song_file').complete== "true"){
settimeout(func,1000);//not a very long time
}
|
|
#4
|
||||
|
||||
|
i belive that is what i was something like what i was looking for but there is no method called complete in IE as far as i know.
colton22 |
|
#5
|
||||
|
||||
|
complete property
It seems that the complete property (not a method) is for images. I wasn't sure if it might also be a property of the embeds array. While searching I found this site that describes how to use the QuickTime © plug-in's complete property. http://developer.apple.com/document...hatsNew-78.html
This is something I can use, so I've added http://developer.apple.com/document...WhatsNew-1.html to my bookmarks until I learn how Hopefully you can use it too.Last edited by Mittineague : July 9th, 2006 at 03:57 PM. |
|
#6
|
||||
|
||||
|
I GOT IT!!!!!!
if you use an <object> as the player, which in most cases you would because of .filename=""; you could use this method if the object was named "Player" var timeofsong=Math.floor(window.document.Player.durat ion)+1; well thanks for helping though, colton22 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Music and javascript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|