Table of Contents
API Irplay: Slow Motion and Instant Replay Service
Access to the Instant Replay and Slow Motion service is implemented through the XML-RPC/HTTP request to the TCP port 10042+N, where N is the service sequence number.
Methods
The list of methods supported by the irplay service XML-RPC interface.
shut_down
forces the service process to exit
parameters - none
return value - none
prev_tray
loads previous recording tray
parameters - none
return value - none
next_tray
loads next recording tray
parameters - none
return value - none
load_tray
loads a clip from the media database into the server's recording tray. Current recording is not interrupted.
parameter 0 - string - ID of the clip to load. Could be the title of any of multicamera clips that corresponds to that recording tray
return value - none
cur_pos
returns current position in the recording tray
parameters - none
return value - double - current position in seconds (absolute time of day)
cur_cam
returns current camera of the recording tray
parameters - none
return value - int - current camera of the recording tray (zero based)
cue_list
returns the list of cue points for the currently loaded recording tray
parameters - none
return value - array(double) - list if cue point position in seconds (absolute time of day)
cur_play_speed
returns current playback speed of the recording tray
parameters - none
return value - double - current playback speed. 1.0 corresponds to normal speed playback, 0.0 corresponds to a full stop.
cur_media_start
returns the start position of the recording tray
parameters - none
return value - double - current recording tray start position in seconds (absolute time of day)
set_cur_pos
sets current position of the recording tray
parameter 0 - double - new position in seconds (absolute time of day)
return value - none
set_cur_cam
sets current camera for the recording tray
parameter 0 - int - new camera number (zero based)
return value - none
set_play_speed
set current playback speed for the recording tray
parameter 0 - double - new playback speed. 1.0 corresponds to normal speed, 0.0 corresponds to a full stop and -1.0 corresponds to reverse playback at a full speed.
return value - none
goto_rec
Added in the 2.2.28 version.
Switches the tray to the currently recording clip and sets the current position to the current time
parameters - none
return value - none
rec_point
Added in the 2.2.28 version.
Return currently recording clip names and offset
parameters - none
return value - struct with the following fields:
- “pos” - double - current offset in the recording stream
- “lst” - array - every element is of the string type and is the uri of the corresponding camera clip