- HTML & CSS
||05-06-2013 10:11 AM
Preloading my audio file in html
I'm currently using the below way to play sound effect on my website. I need the sound to play out everytime I received a protocol from my slave device:
"<embed src=\""+soundfile+"\" hidden=\"true\" autostart=\"true\" loop=\"false\" />";
But seems like this way the audio played is delayed everytime. After I received my protocol for 2 seconds, the audio only played.
Is it because I did not preload my audio? Could you guys teach me how to modify my code and make it into preload enable?
||05-06-2013 03:43 PM
|All times are GMT +1. The time now is 03:40 AM.
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.