How to get data via Websocket in Realtime?

FFGL, OSC, GLSL. If you like abbreviations, this is the forum for you
Post Reply
vnkbln
Met Resolume in a bar the other day
Posts: 1
Joined: Mon Dec 18, 2023 14:52

How to get data via Websocket in Realtime?

Post by vnkbln »

Hello!

I want to get the name of the file playing in the Resolume via Websocket in VVVV. I was able to parse this from JSON, but I have a problem with the fact that Resolume only sends data when connecting to the server and does not update it when it changes. In order for the data to be updated, I need to constantly reconnect. How to automate this process? Maybe I need to send some command to automatically update the JSON?

Image

Please give me any ideas :roll:

VISUALSSS
Met Resolume in a bar the other day
Posts: 1
Joined: Fri Mar 01, 2024 05:02

Re: How to get data via Websocket in Realtime?

Post by VISUALSSS »

I inspected the working Example and simple clip overview demos they link in the Webserver preferences and I saw that those connect to a webserver at ws://192.168.0.224:8080/api/v1 in my browser. I was able to connect to this in TouchDesigner by putting 192.168.0.224/api/v1 as my network address and 8080 as the port.
Last edited by VISUALSSS on Fri Mar 01, 2024 05:08, edited 1 time in total.

Post Reply