RTMP/E
reloadApp(appInst:String) : Object
HTTP
http://www.example.com:1111/admin/reloadApp?auser=username&apswd=password&appInst=name
Shuts down an instance of the application, if running, and reloads it. All users are disconnected.
If you specify an application name, this call reloads the _definst_ instance.
After this method executes, users must reconnect to the application or instance of the application.
Call this method to preload an instance of an application or reload it when application configuration changes are made or the script that is associated with the application has been changed.
Availability
Flash Communication Server 1.0.
Parameters
appInst
A String indicating the name of the application or instance of the application, in the form application_name[/instance_name]. To reload the default instance of an application, specify only the name of the application.
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 and a code property of NetConnection.Call.Success.
If the call fails, the server sends a reply information object with a level property of error and a code property of NetConnection.Admin.Command.Failed or a more specific value, if available. Some objects might also have a description property that contains a string describing the cause of the failure.
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