PDA

View Full Version : is there such a java script?


radiodevil
11-22-2003, 10:58 PM
I run a small internet radio broadcasting for Indie music. I use SAM2 for broadcasting which updates the current song playing via ftp transfer.

When broadcasting there is about a 60 second delay from the time the stream is sent to my computer to the listener, however the ftp updates my web page the moment the new song starts broadcasting from my PC.

SAM2 people tell me that they have seen some people use a complex java script to delay the ftp transfer and publishing of the new information being sent to the site. Is there such a script to delay the ftp changes to take place? and even more of a challenge is there a scritp that will not only update the changes on a delay timer but also refresh the page when a change has been detected? :-)

Would love to hear some ideas on this one!

Nomadicus
11-22-2003, 11:19 PM
>> I use SAM2 for broadcasting which updates the current song playing via ftp transfer. <<

I don't understand. If the current song is already being played (meaning the ftp transfer already took place) then what it the issue?

JS does have some "timer" capabilities with Window.setTimeout and Window.setInterval. But I don't know if this is what you are after.

radiodevil
11-22-2003, 11:33 PM
the issue is that the ftp transfer has taken place and the site updated, however the listener is not yet hearing that song because there is about a 60 second delay from my computer streaming to the listener. Thus the page has updated but the listener has not received the song on stream. i want to see if there is a possible way to accept the ftp transfer but for the update to not be actually be seen by the web visitor for a set time. Meaning that the page will then reflect the correct info. Sorry if that was not clear on the last post, though i mentioned the song playing verses the information on the site was not correct.

Sam transfers via ftp every time new song starts in my broadcaster, however when the song changes in the broadcaster and updates the page the listener still is listening to the previous song (takes time for the stream to transfer) So a delay in ftp transfer by about 60 seconds would sync the web changes with the time that the listener is actually accepting the stream.