Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Record 200 ms of video – works fine
await axios.post(`${httpIP}/control/startRecording`)
await new Promise(resolve => setTimeout(resolve, 200))
await axios.post(`${httpIP}/control/stopRecording`)
// Wait 10 seconds and play back – 400 error
await new Promise(resolve => setTimeout(resolve, 10000))
await axios.post(`${httpIP}/control/startPlayback`, { framerate: 60, position: 0 })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.