1
Software Dev / Web API control: /control/startPlayback results in 400 error
« on: September 11, 2020, 04:16:34 AM »
Hi!
I'm doing some testing with Node.js to remote control the camera via a custom web interface.
Here's part of my Node.js code, which is inside a try/catch block inside an async function.
The recording works fine, but the startPlayback command gives me a 400 error:
https://gist.github.com/kristianpedersen/107a127251698d44e7dad08c265f72dd
I tried reading the source code of the Chronos web control panel, and it seems like the play button sends two different calls to "/control/startPlayback", changing the framerate to 60 or 0, in order to play and pause.
Is there some kind of state that needs to be toggled before I can play back the last recorded video?
Why does the Chronos web interface work, and not my Node.js code?
I'm doing some testing with Node.js to remote control the camera via a custom web interface.
Here's part of my Node.js code, which is inside a try/catch block inside an async function.
The recording works fine, but the startPlayback command gives me a 400 error:
https://gist.github.com/kristianpedersen/107a127251698d44e7dad08c265f72dd
I tried reading the source code of the Chronos web control panel, and it seems like the play button sends two different calls to "/control/startPlayback", changing the framerate to 60 or 0, in order to play and pause.
Is there some kind of state that needs to be toggled before I can play back the last recorded video?
Why does the Chronos web interface work, and not my Node.js code?