Flash Media Server Developer Documentation
NetStream.liveDelay
Flash Media Server Developer Documentation
NetStream.liveDelay
public liveDelay : Number [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).
Flash Communication Server 1.0; Flash Player 6.
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"; }