
4
Chapter 1, Using the Monarch HD Control API
• RETRY, if two or more commands are sent to the Monarch at the same time, or if
the Monarch is executing a command while receiving another. The first
command received will execute, and the others will return RETRY.
StartRecording
This command is used to start the record function on a Monarch HD device.
Returns:
• SUCCESS, if recording is enabled on the device (Record-only or
Stream-and-record mode) and the recording was started successfully.
• FAILED, if recording is not enabled on the device (Stream-only mode), or the
recording could not be started.
• RETRY, if two or more commands are sent to the Monarch at the same time, or if
the Monarch is executing a command while receiving another. The first
command received will execute, and the others will return RETRY.
StartStreamingAndRecording
This command is used to start the stream (RTMP mode) and record functions
simultaneously on a Monarch HD device.
¦NoteIn RTSP mode, the Monarch is always in an active streaming state that cannot
be stopped or started. Therefore, we do not recommend using this command when in
RTSP mode. Use the commands StartRecording and StopRecording instead.
Returns:
• SUCCESS, if both streaming and recording are enabled on the device
(Stream-and-record mode) and the stream and recording was started successfully.
• FAILED, if either streaming or recording is not enabled on the device
(Stream-only or Record-only mode), or the RTMP stream or recording could not
be started.
• RETRY, if two or more commands are sent to the Monarch at the same time, or if
the Monarch is executing a command while receiving another. The first
command received will execute, and the others will return RETRY.
StopStreaming
This command is used to stop the stream function on a Monarch HD device that is set
to RTMP mode.
Returns:
• SUCCESS, if streaming is enabled on the device (Stream-only or
Stream-and-record mode) and the stream was stopped successfully.
• FAILED, if streaming is not enabled on the device (Record-only mode). If the
device is in RTSP mode, this command will return “FAILED”.