Reputation: 1
Is there any possibility in Adobe AIR to control bandwidth usage with AIR when downloading a file using URLStream?
Upvotes: 0
Views: 596
Reputation: 6403
"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
Upvotes: 0
Reputation: 12847
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...
Upvotes: 1
Reputation: 101
you can try and check if NetLimiter can handle this. Here is the link
Hope this helps.
Upvotes: 0