bitfocus / companion-module-studiocoast-vmix

Studiocoast vMix module for Bitfocus Companion
MIT License
32 stars 10 forks source link

Webrequest vMix to Companion (3.2 or 3.3) #260

Closed danielwernitz closed 3 months ago

danielwernitz commented 3 months ago

We want to press a companion button with a vMix webrequest in the new companion version 3.2. (we also tried already with 3.3 Beta). Using the old 3.1 Version the functions are working (page/button).

We tried the webrequest in the old button structure and also the new one (Page/button -> page/row/line)

thedist commented 3 months ago

If you're trying to use the Companion API to press a button, first off this has nothing to do with the vMix Companion module as that's general Companion functionality.

Secondly, how are you making the request? The new API requires you to make a POST request, so if you're making a GET request then that wont work.

danielwernitz commented 3 months ago

Thank you for the quick response. This is the command we used to execute: WebRequest.Create("http://192.168.151.121:8000/press/bank/50/9").getResponse()

We already tried to change the "50/9" to "50/1/0" but without success. Do you know how we need to adapt to command from GET to POST request?

thedist commented 3 months ago

Well you're writing VB.NET vMix scripts, so I'd recommend checking the documentation for VB.NET so you can familiarize yourself with the code you're writing/running.