Client-Side Communication ActionScript > NetStream.liveDelay

 

NetStream.liveDelay

Availability

Flash Player 6.

Flash Communication Server MX.

Usage

myStream.liveDelay

Description

Read-only property; 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).

Example

The following example displays a string (inside a text field named connectionQuality) indicating the connection quality over the NetStream object named ns, according to the value of the liveDelay property.

if (ns.liveDelay < .5) {
	connectionQuality.text = "Good";
} else if (ns.liveDelay < 1) {
	connectionQuality.text = "Slow";
} else {
	connectionQuality.text = "Network congested";
}