TRASSIR objects which belong to one or another class are being used by a methods corresponding to the same class of objects.
To execute a method to an object it is necessary to implement a request of the following type:
https://[address_server]:[port]/objects/[GUID_object]/[method]?[parameter_1]=[value_1]&[parameter_2]=[value_2]&sid=[id_session]
Key elements of the request:
- [GUID_object] - guid of server object(see example Request for the TRASSIR object tree);
- [method] - a method implemented to an object (list of methods implemented to a server objects below);
- [parameter_x]=[value_x] - parameter and its value used by a method;
- sid=[id_session] - id of a session in which request is being implemented (see example Get a session ID).
Methods of operation with channels
Table 106.
| Method | Description of methods and their parameters | TRASSIR |
|---|---|---|
| manual_record_start |
Enable recording of channel archive. |
≥3.1 |
| manual_record_stop |
Disable recording of channel archive. |
≥3.1 |
| ptz_position_query |
Receive a position of PTZ-camera |
≥3.2 |
| ptz_preset |
Switch PTZ-camera to preset Parameter:
|
≥3.1 |
| record |
Parameter:
|
≥3.1 |
| record_off |
Disable manual recording of channel archive. |
≥3.1 |
| record_on |
Enable manual recording of channel archive. |
≥3.1 |
| screenshot |
Save screenshot |
≥3.1 |
| screenshot_ex |
Save screenshot from an archive Parameters:
|
≥3.1 |
| screenshot_v2 |
Save screenshot from an archive Parameters:
|
≥3.2 |
| set_watermark |
Add a text in a video Parameters:
|
≥3.1 |
Operation methods with operator interface
Table 107.
| Method | Description of methods and their parameters | TRASSIR |
|---|---|---|
| archive_export |
Export of main stream from channel archive Parameters:
|
≥3.1 |
| archive_export_ss |
Export of substream from channel archive Parameters:
|
≥3.2 |
| archive_export |
Open channel archive Parameters:
|
≥3.2 |
| assign_channels |
Parameter:
|
≥3.2 |
| change_view_settings |
Change form settings of camera window Parameters:
|
≥3.2 |
| eco_start |
Enable economic mode Parameters:
|
≥3.2 |
| eco_stop |
Disable economic mode Parameters:
|
≥3.2 |
| ptz_start |
Enable PTZ-camera control Parameters:
|
≥3.2 |
| ptz_stop |
Disable PTZ-camera control Parameters:
|
≥3.2 |
| raise_monitor |
Show monitor on top of all windows Parameter:
|
≥3.2 |
| screenshot |
Save screenshot from an archive Parameters:
|
≥3.1 |
| screenshot_ex |
Save screenshot from an archive Parameters:
|
≥3.2 |
| show |
Display a channel or a template on monitor Parameters:
|
≥3.1 |
| show_archive |
Show channel archive on a monitor or in a template Parameters:
|
≥3.1 |
| show_channel |
Display a channel in a monitor Parameters:
|
≥3.1 |
| show_html |
Display html-page Parameters:
|
≥3.2 |
| show_html_on_monitor |
Display html-page on a monitor Parameters:
|
≥3.2 |
| show_html_on_monitor |
Display html-page in a template Parameters:
|
≥3.2 |
| show_template |
Display a template on a monitor Parameters:
|
≥3.1 |
| show_template_by_guid |
Display a template on a monitor Parameters:
|
≥3.1 |
| update_active_monitor |
Update active monitor Parameters:
|
≥3.2 |
Operation methods with"Orion Pro" system
Table 108.
| Method | Description of methods and their parameters | TRASSIR |
|---|---|---|
| refresh_device_list |
Update list of a devices. |
≥3.1 |

