Skip to content

Instantly share code, notes, and snippets.

@kristianpedersen
Created September 11, 2020 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kristianpedersen/107a127251698d44e7dad08c265f72dd to your computer and use it in GitHub Desktop.
Save kristianpedersen/107a127251698d44e7dad08c265f72dd to your computer and use it in GitHub Desktop.
// 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