bitfocus / companion-module-renewedvision-pvp

MIT License
1 stars 2 forks source link

Add support for Transport State as feedback #17

Open chrisrouse opened 2 years ago

chrisrouse commented 2 years ago

The Transport State curl -X GET http://localhost:8080/api/0/transportState/workspace -k can return a lot of info about the current clip playing in the workspace or on a layer. Specific feedback options would include time elapsed and time remaining. Both are shown as seconds out to several decimal places, so the response would likely need to be truncated to just seconds or only one or two decimal places, and if possible, converted from seconds into minutes:seconds.

This was asked about on the PVP user group on facebook. https://www.facebook.com/groups/pvpusersgroup/posts/4584087474963679/

SteveTherrien commented 2 years ago

Hi Chris,

It's a great idea and something I'd love to see added, but my feeling is that the API was meant mainly for triggering changes and not for scraping real time stats.

The concern is that frequent polling of the API could affect PVP's performance. There was a similar problem in the module for ProPresenter, and in the case, the polling was less often than this would need to be.