kkuhl86
03-11-2008, 11:51 PM
Hello all,
I have a question about server side buffering. I know there is a client side buffer which can be set and manipulated via the client side actionscript. However, I am trying to set up a larger buffer (message queue, whichever you like) between the client side and the application publishing to my server so that when publishing high bitrate streams, I don't get a lot of buffering on the client side because the queue will be mostly full all the time and hopefully it will take very little time to grab from. I am using some code to access the stream object and change the message queue size. However, I don't seem to be having much luck with it. If any of you have had a project similar to this or can shed some light on how the message queue stuff works (StreamObj.setbufferTime() and others stream obj functions) I would greatly appreciate it. Below is some code: (This is server side btw)
application.onPublish = function(client_ob, stream_ob){
trace("\nContent Publishing from client: "+client_ob.id+"with stream "+stream_ob.name+"\n");
trace(stream_ob.name+"'s server side message queue is "+stream_ob.bufferTime+" s long");
stream_ob.setBufferTime(30);
trace("Buffer time reset to "+stream_ob.bufferTime);
}
Thank you!
I have a question about server side buffering. I know there is a client side buffer which can be set and manipulated via the client side actionscript. However, I am trying to set up a larger buffer (message queue, whichever you like) between the client side and the application publishing to my server so that when publishing high bitrate streams, I don't get a lot of buffering on the client side because the queue will be mostly full all the time and hopefully it will take very little time to grab from. I am using some code to access the stream object and change the message queue size. However, I don't seem to be having much luck with it. If any of you have had a project similar to this or can shed some light on how the message queue stuff works (StreamObj.setbufferTime() and others stream obj functions) I would greatly appreciate it. Below is some code: (This is server side btw)
application.onPublish = function(client_ob, stream_ob){
trace("\nContent Publishing from client: "+client_ob.id+"with stream "+stream_ob.name+"\n");
trace(stream_ob.name+"'s server side message queue is "+stream_ob.bufferTime+" s long");
stream_ob.setBufferTime(30);
trace("Buffer time reset to "+stream_ob.bufferTime);
}
Thank you!