A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | function call | from version | description | parameters | return | notes | sample call | |||||||||||||
2 | These API commands can be called by various methods: HTTP, OSC, RPC. Please read the guide for an overview | |||||||||||||||||||
3 | API Manual | |||||||||||||||||||
4 | ||||||||||||||||||||
5 | Player Editor | these commands are mainly for external clients, apps and alternative editors | ||||||||||||||||||
6 | setPlayMode | Changes the play mode for th player window | s:"live"|"edit"|"xray" | |||||||||||||||||
7 | setEditingMode | Changes the current editing function in the player window | s:"move"|"warp" | |||||||||||||||||
8 | ||||||||||||||||||||
9 | Global functions | |||||||||||||||||||
10 | setGlobalOpacity | Sets the overall live set opacity for all surfaces | f:opacity | |||||||||||||||||
11 | setGlobalVolume | Sets the overall volume level | f:volume | |||||||||||||||||
12 | muteAudio | Mutes/unmutes all audio | b:mute | |||||||||||||||||
13 | getRuntimeInfoLite | Returns runtime information structure | RuntimeInfoLite structure | |||||||||||||||||
14 | ||||||||||||||||||||
15 | Set functions | |||||||||||||||||||
16 | playSetIndex | Plays a specific Set by Index (starting from 0) and Cue. Cue -2 is the black cue. | i:index,i:cue | |||||||||||||||||
17 | controlCurrentSet | Controls the play state of the current Set | s:play_mode | play_mode can be "Play",Pause","RewindPlay","RewindPause" | ||||||||||||||||
18 | ||||||||||||||||||||
19 | Cue functions | |||||||||||||||||||
20 | playCue | Plays the indexed Cue, obeys fade in-out from cue properties | i:index | |||||||||||||||||
21 | playCueRelative | Plays the Cue relatively positioned to the current one. Example +1 means the next, -1 the previous. | i:relative_position | |||||||||||||||||
22 | rewindCurrentCue | Rewinds the Cue | ||||||||||||||||||
23 | getCurrentCueList | Returns the list of Cues in the current Set | list of ResourceCue entities | |||||||||||||||||
24 | setCueFade | Sets the Cue fading in/out and crossfade flag | i:set_index,i:cue_index,f:fade_in, f:fade_out,b:crossfade | The special index -1 for set and cue refers the currently playing ones. | ||||||||||||||||
25 | setCueResource | Assigns a Resource to a Surface, in a specific Set and Cue. Play mode will be applied only if setting in the current Set and Cue | i:set_index,i:cue_index,i:surface_index,s:resource_name_or_id,s:play_mode | The special index -1 for set and cue refers the currently playing ones. play_mode can be "Play",Pause","RewindPlay","RewindPause" | ||||||||||||||||
26 | setCueResourceRegion | Sets the Resource Region to a Surface, in a specific Set and Cue | i:set_index,i:cue_index,i:surface_index,i:region_index | The special index -1 for set and cue refers the currently playing ones. | ||||||||||||||||
27 | setCueResourceLoop | Sets the Resource loop state to a Surface, in a specific Set and Cue | i:set_index,i:cue_index,i:surface_index,b:resource_loop | The special index -1 for set and cue refers the currently playing ones. | ||||||||||||||||
28 | getCueResource | 1.9.16 | Returns the resource of requested set, cue and surface index | i:set_index, i:cue_index, i:surface_index | FacadeResource entity | The special index -1 for set and cue refers the currently playing ones. | ||||||||||||||
29 | ||||||||||||||||||||
30 | Surface functions | these commands will affet a Surface in the requested Set (-1 for current set) or in the current Set/Cue | ||||||||||||||||||
31 | setSurfaceOpacity | Changes the opacity of a surface (range: 0.0 - 1.0) | i:set_index,i:surface_index,f:opacity | set_index can be -1 for the current set | ||||||||||||||||
32 | resetSurfaceResource | Clears a Surface from assigned resource, in the current Set and Cue | i:surface_index | |||||||||||||||||
33 | setSurfaceResource | Assigns a Resource to a Surface, in the current Set and Cue | i:surface_index,s:resource_name_or_id, s:play_mode | play_mode can be "Play",Pause","RewindPlay","RewindPause" | ||||||||||||||||
34 | controlSurfaceResource | Controls the play state of a Resource assigned to a Surface, in the current Set and Cue | s:surface_index,s:play_mode | play_mode can be "Play",Pause","RewindPlay","RewindPause" | ||||||||||||||||
35 | setSurfaceFlatVertices | Modifies a Surface vertices setting its mode to Flat warp (4 vertices) | i:set_index,i:surface_index, i:vertex1_x,i:vertex1_y, i:vertex2_x,i:vertex2_y, i:vertex3_x,i:vertex3_y, i:vertex4_x,i:vertex4_y | set_index can be -1 for the current set If the surface warp mode is different from Flat it will be set as it | ||||||||||||||||
36 | moveSurface | 1.9.13 | Moves a Surface by dx/dy pixels, or sets the absolute position if absolute parameter is true (defaults to false) | i:set_index, i:surface_index, f:dx, f:dy, b:absolute=false | set_index can be -1 for the current set. absolute parameter defaults to false. | |||||||||||||||
37 | moveSurfacePoint | 1.9.13 | Moves a Surface control point (dependent on warping type) byt a relative amount | i:set_index, i:surface_index, i:point_index, f:dx, f:dy | set_index can be -1 for the current set | http://localhost:15000/api/moveSurfacePoint/1/1/1/10/10 | ||||||||||||||
38 | selectSurfacePoint | 1.9.13 | Selects in edit a Surface control point | i:set_index, i:surface_index, i:point_index | set_index can be -1 for the current set | |||||||||||||||
39 | selectSurface | 1.9.13 | Selects in edit a Surface. If specified will enter edit mode and also snap the mouse on the selected surface. | i:set_index, i:surface_index, i:point_index, b:enter_edit=false, b:snap_mouse=false | set_index can be -1 for the current set | |||||||||||||||
40 | getSurfaces | 1.9.13 | Returns all the surfaces of the requested Set | i:set_index | list of FacadeSurface entities | set_index can be -1 for the current set | ||||||||||||||
41 | setSurfaceSolo | 1.9.13 | Makes the requested Surface in "solo" visualization mode, or restores visibility of all surfaces if set on a surface that is already soloed | i:surface_index | ||||||||||||||||
42 | setSurfaceColor | 2022.1.0 | Sets the color rgb 0-255 | i:set_index,i:surface_index,i:alpha,i:red:i:green,i:blue | set_index can be -1 for the current set | |||||||||||||||
43 | setSurfaceColorChannel | 2022.1.0 | Sets the color of a channel (0:alpha, 1:red, 2:green, 3:blue) 0-255 | i:set_index,i:surface_index,i:channel,i:color_value | set_index can be -1 for the current set | |||||||||||||||
44 | setSurfaceTextureScale | 2022.1.0 | Sets the surface texture scale (ovverides Cue if not 1) | i:set_index,i:surface_index,f:scale | set_index can be -1 for the current set | |||||||||||||||
45 | setSurfaceTextureRotation | 2022.1.0 | Sets the surface texture rotation (ovverides Cue if not 0) | i:set_index,i:surface_index,f:rotation | set_index can be -1 for the current set | |||||||||||||||
46 | ||||||||||||||||||||
47 | Resource functions | these will affect Resources playing (and already assigned to a Surface) | the resource_name is the one given in the Media Resources panel | |||||||||||||||||
48 | resourceAdvance | Issues an advance command to a resource (ex: playlist next item). Works only if resource is currently playing and resource type supports it (playlists). | s:resource_name_or_id | |||||||||||||||||
49 | resourceControl | Controls the resource according to the play_mode | s:resource_name_or_id, s:play_mode | play_mode can be "Play",Pause","RewindPlay","RewindPause" | ||||||||||||||||
50 | resourceIsEnded | Returns true if the resource has ended. NOTE: if the resource is set to loop it will NEVER end. | s:resource_name_or_id | b:resource_ended | ||||||||||||||||
51 | resourceChangeMediaFile | 1.9.16 | Changes a resource media file with the provided media file path. If path is relative it refers to the project /media subfolder. After a media is changed a rewind of the current cue is needed to apply the transition parameters (default to true) | s:resource_name_or_id, s:file_name, b:rewind_current_cue=true | ||||||||||||||||
52 | ||||||||||||||||||||
53 | ||||||||||||||||||||
54 | ||||||||||||||||||||
55 | ||||||||||||||||||||
56 | ||||||||||||||||||||
57 | ||||||||||||||||||||
58 | ||||||||||||||||||||
59 | ||||||||||||||||||||
60 | ||||||||||||||||||||
61 | ||||||||||||||||||||
62 | ||||||||||||||||||||
63 | ||||||||||||||||||||
64 | ||||||||||||||||||||
65 | ||||||||||||||||||||
66 | ||||||||||||||||||||
67 | ||||||||||||||||||||
68 | ||||||||||||||||||||
69 | ||||||||||||||||||||
70 | ||||||||||||||||||||
71 | ||||||||||||||||||||
72 | ||||||||||||||||||||
73 | ||||||||||||||||||||
74 | ||||||||||||||||||||
75 |