RTMP/E

 getAdaptors() : Object

HTTP

 http://www.example.com:1111/admin/getAdaptors?auser=username&apswd=password

Returns an array of adaptors that are defined. You must be a server administrator to call this method.

Availability

Flash Communication Server 1.0.

Parameters

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 array of strings containing the names of all the adaptors.

HTTP

If the call succeeds, it returns something like the following:

 <result>   <level>status</level>   <code>NetConnection.Call.Success</code>   <timestamp>7/23/2007 8:25:52 AM</timestamp>   <data>   <_0>Adaptor2</_0>   <_1>_defaultRoot_</_1>   </data>  </result>  

If the call fails, it returns something like the following:

 <result>   <level>error</level>   <code>NetConnection.Connect.Rejected</code>   <description>Administrator login failed for user Admin.</description>   <timestamp>7/23/2007 8:26:36 AM</timestamp>  </result>

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

Example

 nc_admin = new NetConnection(); 
 nc_admin.connect("rtmp://localhost:1111/admin", "JLee", "x52z49ab"); 
 nc_admin.call("getAdaptors", new Result());

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy