NetStream.liveDelay

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).

Availability

Flash Communication Server 1.0; Flash Player 6.

Example

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";
}

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

What is 6 + 10 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)