Splicer Control System - API Call Instructions - V01
1. Page Initialization
- First, perform a GET request to the /v1/splicer/info interface to obtain page functionality permissions.
- At the same time, enable the websocket service to listen for synchronization push messages.
- Then, based on the data.echo_mode from the page functionality permissions interface, check the echo mode. If it is 1, poll GET /v1/splicer/echoscreen/mode1 to fetch the echoed screen images.
- Next, perform a GET request to /v1/splicer/wall/list to get the screen wall list data.
- Concurrently, perform a GET request to /v1/splicer/signal/list to get the signal source list, and then perform a GET request to /v1/splicer/signal/group to get signal groups.
- Then, based on the screen wall ID (defaulting to the first screen wall), perform a GET request to /v1/splicer/scene/list to obtain the scene list.
- Next, check the active_scene_id in the scene list. If it exists, proceed to the next step. If it does not exist, set active_scene_id to the ID of the first scene, then perform a GET request to /v1/splicer/scene/switch to switch to the first scene, and follow up with a GET request to /v1/splicer/logicslot/template to fetch the slot template.
- Finally, based on active_scene_id, perform a GET request to /v1/splicer/scene/window/list to fetch the window list.
2. Move Window and Change Window Size
- First, perform a GET request to /v1/splicer/scene/window/move.
- Then, perform a GET request to /v1/splicer/scene/save.
3. Add New Window
- First, perform a GET request to /v1/splicer/scene/window/open.
- Then, perform a GET request to /v1/splicer/scene/save.
- Finally, perform a GET request to /v1/splicer/scene/window/list.
4. Replace Window
- First, call the /v1/splicer/scene/window/source interface.
- Then, call the /v1/splicer/scene/save interface.
- Finally, call the /v1/splicer/scene/window/list interface.
5. Window Ordering
- First, perform a GET request to /v1/splicer/scene/window/level.
- Then, perform a GET request to /v1/splicer/scene/save.
- Finally, perform a GET request to /v1/splicer/scene/window/list.
6. Delete Window
- First, perform a GET request to /v1/splicer/scene/window/close.
- Then, perform a GET request to /v1/splicer/scene/save.
- Finally, perform a GET request to /v1/splicer/scene/window/list.
7. Switch Screen Wall
- First, perform a GET request to /v1/splicer/scene/list.
- Then, perform a GET request to /v1/splicer/logicslot/template.
- Finally, perform a GET request to /v1/splicer/scene/window/list.
8. Switch Scene
- First, perform a GET request to /v1/splicer/scene/switch.
- Then, perform a GET request to /v1/splicer/logicslot/template.
- Finally, perform a GET request to /v1/splicer/scene/window/list.
9. Scene Sorting
- First, perform a GET request to /v1/splicer/scene/sort.
- Then, perform a GET request to /v1/splicer/scene/list.
- Then, perform a GET request to /v1/splicer/logicslot/template.
- Finally, perform a GET request to /v1/splicer/scene/window/list.
10. Add Scene
- First, perform a POST request to /v1/splicer/scene/new.
- Then, perform a GET request to /v1/splicer/scene/list.
- Then, perform a GET request to /v1/splicer/logicslot/template.
- Finally, perform a GET request to /v1/splicer/scene/window/list.
11. Delete Scene
- First, perform a DELETE request to /v1/splicer/scene.
- Then, perform a GET request to /v1/splicer/scene/list.
- Then, perform a GET request to /v1/splicer/logicslot/template.
- Finally, perform a GET request to /v1/splicer/scene/window/list.
12. Rename Scene
- First, perform a POST request to /v1/splicer/scene/rename.
- Then, perform a GET request to /v1/splicer/scene/list.
- Then, perform a GET request to /v1/splicer/logicslot/template.
- Finally, perform a GET request to /v1/splicer/scene/window/list.
13. Add or Remove Signal Source from Group
- First, perform a POST request to /v1/splicer/signal/group.
- Then, perform a GET request to /v1/splicer/signal/group.
14. Rename Signal Source
- First, perform a POST request to /v1/splicer/signal/rename.
- Then, perform a GET request to /v1/splicer/signal/list.
- Then, perform a GET request to /v1/splicer/signal/group.
15. Enable or Disable Virtual Slot
- First, perform a PUT request to /v1/splicer/logicslot/template.
- Then, perform a GET request to /v1/splicer/scene/list.
- Then, perform a GET request to /v1/splicer/logicslot/template.
- Finally, perform a GET request to /v1/splicer/scene/window/list.
16. Clear All Windows
- First, perform a GET request to /v1/splicer/scene/window/close/all.
- Then, perform a GET request to /v1/splicer/scene/save.
- Finally, perform a GET request to /v1/splicer/scene/window/list.
17. Force Hardware Refresh
- First, perform a GET request to /v1/splicer/refresh/all.
- Then, redo step 1: Page Initialization.