开发者

Adobe Air: how to limit download speed?

Is there any possibility in Adobe AIR to control bandwidth usage with AIR when downloadi开发者_如何学Gong a file using URLStream?


Short answer, you can't. It is not Air's purpose to 'limit' any kind of downloads (and I don't get why you would in the first place...) since if you're going over HTTP it actually uses the OS' default browser.

The only way you could limit it is by create a Socket and try to implement an HTTP protocol within that or implement your own protocol. Frankly, I wouldn't even try. I don't see much use for limiting bandwidth for download...


you can try and check if NetLimiter can handle this. Here is the link

http://www.netlimiter.com/

Hope this helps.


"eats all available traffic" is a good thing on the client side.

If a stream download speeds becomes slower then the time played the user will have to wait for buffering and this would be bad.

Your best bet is detect the speed of DL and if it lesser then XXX have it download a lower rez video. To do this you will need to have a few versions of the file on the server. This allows the client to get optimized speeds. You can also allow the user to override it To get HD quality if they really want to see high def

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜