JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old June 30th, 2006, 04:56 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 471 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 10 m 16 sec
Reputation Power: 3
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
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

Reply With Quote
  #2  
Old July 3rd, 2006, 02:31 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 471 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 10 m 16 sec
Reputation Power: 3
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
Exclamation

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?

Reply With Quote
  #3  
Old July 5th, 2006, 08:55 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 542 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 2 h 58 m 28 sec
Reputation Power: 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
}

Reply With Quote
  #4  
Old July 7th, 2006, 02:54 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 471 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 10 m 16 sec
Reputation Power: 3
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
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

Reply With Quote
  #5  
Old July 9th, 2006, 03:48 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 542 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 2 h 58 m 28 sec
Reputation Power: 3
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.

Reply With Quote
  #6  
Old July 20th, 2006, 02:33 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 471 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 10 m 16 sec
Reputation Power: 3
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
Exclamation

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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Music and javascript


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway