immunity Posted June 24, 2007 Share Posted June 24, 2007 Hello i would like to add a mp3 for background sound but its server's upload its low bandwidth and the file is 2MBIs there any way to play it like a stream ?Is there any way so Internet explorer cache it and while user change pictures music still playing?Thanks,John Link to comment Share on other sites More sharing options...
Xtazy Posted June 24, 2007 Share Posted June 24, 2007 Why with javascript? Try: <embedsrc="x.wav"width="x%"height="x%"></embed> Link to comment Share on other sites More sharing options...
immunity Posted June 24, 2007 Author Share Posted June 24, 2007 Why with javascript? Try:<embedsrc="x.wav"width="x%"height="x%"></embed> I want to be background (so guest will hear it one time every time he join my first page)and if he leave the first page he will still hear it until the song end :)thx for embed (i displace BGsound with this ) ok my problem is that the song = 20 secso maybe the user go to the next page.I want to hear it whole is there any way ?(store it on the browser memory ? (how) Link to comment Share on other sites More sharing options...
Xtazy Posted June 24, 2007 Share Posted June 24, 2007 i don't think there's a way to do that with javascript...i think the only websites where i saw this was the flash ones... Link to comment Share on other sites More sharing options...
immunity Posted June 24, 2007 Author Share Posted June 24, 2007 i don't think there's a way to do that with javascript...i think the only websites where i saw this was the flash ones...i see anyway thank you very much Link to comment Share on other sites More sharing options...
immunity Posted June 24, 2007 Author Share Posted June 24, 2007 i see anyway thank you very much althought i think there is a way with AJAX (what i am using)Of course it is able to make all your site be display in 1 page( so no other page will be loaded) and via Ajax you will bring the objects user had selectedI am curious if you can request a page and inside that page put the sound to play. ( i am gonna test that ) Link to comment Share on other sites More sharing options...
Xtazy Posted June 24, 2007 Share Posted June 24, 2007 I haven't learned AJAX yet, so I can't help you with that... Link to comment Share on other sites More sharing options...
immunity Posted June 24, 2007 Author Share Posted June 24, 2007 I haven't learned AJAX yet, so I can't help you with that... well you helped me alot ! now my sound is played from all browsers Link to comment Share on other sites More sharing options...
Xtazy Posted June 24, 2007 Share Posted June 24, 2007 No problem, m8 ! Link to comment Share on other sites More sharing options...
justsomeguy Posted June 27, 2007 Share Posted June 27, 2007 This thread has exceeded the maximum amount of recommended smilies to avoid annoyance.If the page gets refreshed, you cannot persist anything, including audio, through the refresh. If clicking on a link does not require a refresh, such as if you have your entire site being loaded through AJAX requests all on one page, then it's the same as if the user stayed on one page the entire time, so things like audio would play until they closed the browser or went to another page. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.