krontech / pychronos

Python bindings for the Chronos High Speed Camera
GNU General Public License v3.0
3 stars 2 forks source link

There is no API call to or mechanism to change video states. #60

Closed oskirby closed 4 years ago

oskirby commented 4 years ago

Presently, the only mechanism to switch the video state is to call one of the livedisplay or playback methods in the video API, but they are not exposed via any means in the control API.

Since we are trying to move away from methods in general, perhaps the best solution is to make the videoState property writeable. This setting videoState to "live" enters the live display mode, and setting it to "play" enters playback mode. This would need some sanity checks to ensure that the state transition is valid, and is further complicated that the state changes happen asynchronously to the call that requests them.