getRecordedStreamStats()

RTMP/E

 getRecordedStreamStats(appInst:String, stream:String) : Object

HTTP

 http://www.example.com:1111/admin/getRecordedStreamStats?auser=username&apswd=password&appInst=name&stream=name

Returns detailed information about a recorded stream.

Availability

Flash Media Server 2.0.

Parameters

appInst

A String indicating the name of the instance of the application, in the form application_name/instance_name.

stream

A String indicating the name of the stream. If the stream has a nondefault virtual key or type, these items should be encoded into the stream name. The following is an example of how to encode key and type: key?type:name and on2key?flv:myStream.

auser

A String indicating the user name of the administrator.

apswd

A String indicating the password of the administrator.

Returns

RTMP/E

If the call succeeds, the server sends a reply information object with a level property of status, a code property of NetConnection.Call.Success, and a data property that is an object that contains the following properties:

Property

Name

cache_bytes

Number; total number of cached bytes of this recorded stream.

cache_segments

Number; number of segments cached for this recorded stream.

cache_hits

Number; number of hits on this stream within the cache.

cache_misses

Number; number of misses on the cache for this stream.

modified_time

ActionScript Date object; date when this file was last modified.

size

Number; number of bytes in this recorded file.

length

Number; length of this file in seconds.

HTTP

If the call succeeds, it returns XML with the following structure:

 <result>   <level></level>   <code></code>   <timestamp></timestamp>   <data></data>  </result>

Nested in the data element are elements for each property of the data object listed in the RTMP/E section.

If the call fails, it returns XML with the following structure:

 <result>   <level></level>   <code></code>   <description></description>   <timestamp></timestamp>  </result>

The XML elements contain the same information as the Object properties returned in an RTMP/E call.

Note: The timestamp response over HTTP is formatted differently on Windows (9/23/2007 6:16:40 PM) and Linux (Sun 23 Sep 2007 06:16:40 PM IST).

See also

Get help faster and easier

New user?