简体   繁体   English

在flex中缓存flv数据

[英]caching flv data in flex

I am developing an eLearning application in Flex which shows flv movies hosted on a webserver. 我正在Flex中开发一个电子学习应用程序,该应用程序显示托管在网络服务器上的flv电影。 If the app has many simultaneous users the download demand is quite high because a lot of users need to download the (same) movie(s). 如果应用程序有多个同时用户,则下载需求很高,因为很多用户需要下载(相同)电影。 Is there a way I can precache this data in my flex client like storing it in the browsercache or something so that for later sessions the bandwidth demand is less high? 有没有一种方法可以将我的数据预缓存在我的Flex客户端中,例如将其存储在浏览器缓存中,还是在以后的会话中带宽需求不那么高?

Thanks, Martijn 谢谢,马丁

Browsers will naturally cache the flvs. 浏览器自然会缓存flv。 Make sure you don't have no-cache headers set on the flvs. 确保没有在flv上设置无缓存头。 However, the cache can fill up, and nothing prevents users from clearing their browser cache. 但是,缓存可以填满,并且没有什么可以阻止用户清除其浏览器缓存。

A better solution in my opinion would be to host the flvs on something like amazon cloud front . 我认为,更好的解决方案是将flv托管在类似Amazon Cloud Front的平台上


Edit Also, you should consider moving from flv to h.264 as it has been supported since Flash Player 9 (version 9,0,115,0) Update 3 and has much better compression than flvs. 编辑此外,您应该考虑从flv迁移到h.264,因为自Flash Player 9(版本9,0,115,0)Update 3起已支持它,并且压缩比flvs好得多。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM