Flash Media Server Developer Documentation

Client.getStreamLength()

clientObject.getStreamLength(streamObj)

Returns the length of a stream, in seconds. Call this method from a client-side script and specify a response object to receive the returned value.

Availability

Flash Media Interactive Server 3 and Flash Media Development Server 3

Parameters

streamObj A Stream object.

Returns

A number.

Example

The following client-side code gets the length of the sample_video stream and returns the value to returnObj:

nc.call("getStreamLength", returnObj, "sample_video");