Flash Media Server |
|||
| Client-Side ActionScript Language Reference for Flash Media Server 2 > Client-Side ActionScript Language Reference > NetStream class > NetStream.liveDelay | |||
public liveDelay : Number [read-only]
Property (read-only); the number of seconds of data in the specified subscribing stream's buffer in live (unbuffered) mode. This property indicates the current network transmission delay (lag time).
The following example displays a string (inside a text field named connectionQuality_str) indicating the connection quality over the NetStream object named my_ns, according to the value of the liveDelay property.
if (my_ns.liveDelay < .5) {
connectionQuality_str.text = "Good";
} else if (my_ns.liveDelay < 1) {
connectionQuality_str.text = "Slow";
} else {
connectionQuality_str.text = "Network congested";
}
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fms/2/docs/00000582.html