Flash Media Server |
|||
| Client-Side ActionScript Language Reference for Flash Media Server 2 > Client-Side ActionScript Language Reference > NetStream class > NetStream.setBufferTime() | |||
public setBufferTime(bufferTime : Number) : Void
bufferTime The number of seconds to be buffered before Flash stops sending data (on a publishing stream) or begins displaying data (on a subscribing stream). The default value is 9.
|
NOTE |
|
The default value for Flash Media Server |
Method; behavior depends on whether this method is called on a publishing or a subscribing stream.
For example, suppose you set bufferTime to 30, but after 30 seconds, only 5 seconds of data have been sent over the connection. Flash may stop sending data to the buffer until more data has been sent to the client. The client will receive the initial 30 seconds that were buffered but might lose some intervening frames before the next set of buffered data is displayed.
bufferTime to 15; Flash will begin playing the stream only after 15 seconds of data have been buffered. When a recorded stream is played, if bufferTime is zero, Flash sets it to a small value (approximately 10 milliseconds). If live streams are later played (for example, from a playlist), this buffer time persists--that is, bufferTime remains nonzero for the stream.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fms/2/docs/00000594.html