stopServer(mode:String) : Object
Shuts down the Adobe Media Server. If you call this method while users are connected, you should take steps to notify users of an imminent server shutdown so that they do not lose their work.
You must be a server administrator to perform this operation.
A String indicating how the server is to be shut down. Possible values are normal or abort. If you use the value normal, the server shuts down, allowing running applications to end normally. If you use the value abort, the server immediately shuts down and running applications will not be allowed to stop normally. Use the value abort only in an emergency or if specifying normal does not work.
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.
If the call succeeds, it returns XML with the following structure:<result> <level></level> <code></code> <timestamp></timestamp> </result>
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).