logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Dist  
#1 Posted : Tuesday, December 22, 2020 1:41:17 AM(UTC)
Dist

Rank: Advanced Member

Groups: Registered
Joined: 12/19/2019(UTC)
Posts: 46
United Kingdom

Was thanked: 23 time(s) in 16 post(s)
I'm one of the main developers for the Companion module for vMix, and when doing some v24 testing I noticed that we started getting some errors due to the API response about replay inputs differing from the structure we expected.

My current assumption is that because v24 supports 8 cameras this leads to increased load times for that input, and if the API is polled during that loading the input returned is different from the standard response.

This is all JSON, as I don't log the raw XML, but this is an example of a known good replay input:

Code:
{
  key: 'bc8245b1-e288-4b89-9504-83d855c13914',
  number: '6',
  type: 'Replay',
  title: 'rp1 - A',
  shortTitle: 'rp1',
  state: 'Paused',
  position: '0',
  duration: '-67',
  loop: 'False',
  muted: 'True',
  volume: '100',
  balance: '0',
  solo: 'False',
  audiobusses: 'M',
  meterF1: '0',
  meterF2: '0',
  overlay: [],
  replay: {
    live: 'False',
    recording: 'False',
    channelMode: 'AB',
    events: '1',
    eventsA: '1',
    eventsB: '1',
    cameraA: '1',
    cameraB: '1',
    speed: '1',
    speedA: '1',
    speedB: '1'
  }
}


But the API response that is given during the loading of the replay input is:
Code:
{
  key: 'bc8245b1-e288-4b89-9504-83d855c13914',
  number: '6',
  type: 'Replay',
  title: 'rp1 - A',
  shortTitle: 'rp1',
  state: 'Paused',
  position: '0',
  duration: '0',
  loop: 'False',
}


Is there a public schema documenting the structure/types of the API response so that we know that some fields will not always be returned? If not, is this behaviour that we can expect from all inputs, where fields could be entirely missing if the XML API data is requested at a certain time in the inputs loading/unloading?
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.