Alteka / VTKounter

Shows VT Time remaining and also routes it to OBS
GNU General Public License v3.0
15 stars 2 forks source link

vMix text/timer integration like OBS #11

Closed canoemoose closed 2 years ago

DrewLX commented 3 years ago

I actually see this is only so worthwhile if we have a browser output. Almost to the point that the OBS web socket feed is only so useful?!

garethnunns commented 3 years ago

vMix supports JSON, which might be a useful for other applications too; this could be part of the web server support (#3)

DrewLX commented 3 years ago

How does vMix poll the json data source? I can't see in the UI / documentation any settings for this. Otherwise adding the feature isn't that hard, but not sure how useful it is.

DrewLX commented 3 years ago

Done on latest master commit

garethnunns commented 3 years ago

This video covers how they are polled and the manual mentions it's expected as an array, which isn't the most common way to return an API and looks like a few other people have had issues.

Maybe there could be a couple of endpoints, e.g.

http://localhost:12345/api/v1/all

{
  "data": {
    "app": {
      "name": "QLab",
      "longName": "",
      "ip": "127.0.0.1",
      "connected": true
    },
    "timer": {
      "text": "04:05:06",
      "hours": 4,
      "minutes": 5,
      "seconds": 6,
      "ms": 0,
      "playing": true
    }
  }
}

http://localhost:12345/api/v1/all/array

The same data as above but as an array

[
  "QLab",
  "",
  "127.0.0.1",
  true,
  "04:05:06",
  4,
  5,
  6,
  0,
  true
]
DrewLX commented 3 years ago

I'll test with vMix tomorrow and amend as needed

garethnunns commented 2 years ago

I have just tested this and it does not appear to work, will have an experiment now!

DrewLX commented 2 years ago

Ok, I can also do some testing over the next couple of days. I'm keen to drop an update release within a few weeks of this and 1.2 of Kards.

Drew

DrewLX commented 2 years ago

I'm happy this is updated to a good level, with sensible built in documentation etc. When we're ready to release I'll update the website articles on how to use and maybe do a video guide on how to use with vMix.