preloading audio files

前端 未结 3 1490
日久生厌
日久生厌 2021-01-03 08:21

I want to preload audio files in my website. I am using the following code in html page.



        
3条回答
  •  执笔经年
    2021-01-03 08:57

    According to http://kb2.adobe.com/cps/127/tn_12701.html the parameter name you're looking for (for the swf 'embed' tags) is 'play', not 'autostart'. Therefore, change them to:

    
    

    You could also put them within object tags and then use:

    
    

    I've tested this myself, and it works. As for the tags for iPad Safari, the HTML5 audio tag has an attribute called 'preload', which when set to 'auto' should preload the files as you want. Try:

    I hope this helps.

提交回复
热议问题