Copy link to clipboard
Copied
Hi all
I want to send bytes array from Flash Media Server to client
Client.prototype.sendData = function(bytes){
//bytes is BytesArray
client[0].call("reciveData",null,bytes);
}
This code is work succesfully but I like to show progress bar to download this BytesArray for client. But reciveData doesn't call before all ByteArray is download on to the client.
Please advise me to create progress bar for show how much if BytesArray is downloaded for client.
Any help will be appreciated.
Copy link to clipboard
Copied
You can find out the bandwidth between server and client and then call the above method for appropriate number of bytes data repeatedly based on what the bandwidth is..In between two function calls you can update the progress bar.