在显示之前流式处理SWF文件,而不是下载整个SWF文件 [英] Stream a swf instead of downloading a whole swf before displaying

查看:91
本文介绍了在显示之前流式处理SWF文件,而不是下载整个SWF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以流式传输.swf文件,而不是让网站等到整个swf加载完毕?我正在工作的一位客户希望使用基于Flash的动画来打开网站,但这是一个很大的文件.想知道是否有人对swf流有任何建议吗?

Is there any way to stream an .swf file instead of making the site wait until the entire swf is loaded? A client i am working for wants a flash-based animation to open the site, but it is a big file. Was wondering if anyone had any suggestions for swf streaming?

推荐答案

swf最初是为某些流而设计的(可以实时播放内容),麻烦在于它不是为加载随机部分而设计的. swf就像适当的"流视频一样. 因此,根据瑞士法郎在做什么,您仍然可以流式传输它,并可以使用 framesLoaded 属性来确定您要播放的声部是否已加载并在常规检查点等待.

Initially swf was designed for some streaming ( playing the content on the fly as available ), the trouble was that it wasn't designed for loading random part of the swf like a "proper" streaming video. so depending on what your swf is doing you can still stream it, and can use the framesLoaded property to figure out if the part you want to play is loaded and wait at regular checkpoint.

这篇关于在显示之前流式处理SWF文件,而不是下载整个SWF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆