开发者

How to add a preloader

开发者 https://www.devze.com 2022-12-15 04:14 出处:网络
First post here. I have a xml video background and need to add a preloader before the video is buffering. The problem is that I am loading the video from xml file and from what I\'ve tried the preloa

First post here.

I have a xml video background and need to add a preloader before the video is buffering. The problem is that I am loading the video from xml file and from what I've tried the preloader works for the swf file but not for f4v video loaded externally.

Any thoughts? You can check the preview here: http://www.freeportbiblecenter.org

What I've come with is to compress the video so Ill get a smaller file or change the buffer time, but the priority is to come out with th开发者_运维技巧e preloader.

Thanks in advance


I think if you do getBytesLoaded it would not matter what type of a file it is, flash would only check how many bytes are loaded and what was the total of it. So you can pause your video untill bytes loaded are equal to total bytes :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号