API calls - inconsistent clip connect

Post your questions here and we'll all try to help.
Post Reply
slopes
Met Resolume in a bar the other day
Posts: 3
Joined: Sun Jan 29, 2023 18:47

API calls - inconsistent clip connect

Post by slopes »

I'm trying to do a simple API call to a local instance of Resolume Arena from the Swagger test interface on the same machine.

This is the Request URL for the "Connect the clip by its position in the clip grid"
http://192.168.1.XX:8080/api/v1/composi ... /1/connect

I'm not able to consistently to get it to work. I've reinstalled the latest version of Arena, started on a blank project, and it still is all over the place.

I'm able to start with Clip 1 on Layer 1 by issuing an API call. Then I go to Layer 1 Clip 2 by executing the API call from Swagger. All good so far. It goes forward on the same Layer fine. Clip 1, 2, 3, etc.

Then, I try to go back to Layer 1, Clip 1 from say Clip 4. Doesn't work. Server response says 204 but the clip doesn't move.

What am I missing?

Zoltán
Team Resolume
Posts: 7108
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: API calls - inconsistent clip connect

Post by Zoltán »

I'd guess you only send the true value.
Whether to connect the clip. This is analogous to whether the mouse is pressed down on the clip. If omitted, true and false are both send - as if a short click was generated
With true only it's behaving like the mouse button pressed. You need to release it first with false.

Or simply not send the true/false.
Software developer, Sound Engineer,
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu

slopes
Met Resolume in a bar the other day
Posts: 3
Joined: Sun Jan 29, 2023 18:47

Re: API calls - inconsistent clip connect

Post by slopes »

You are absolutely right. Thank you.

Post Reply