Hacker News new | ask | show | jobs
by gbraad 1997 days ago
Why

  recorder.send('record')
instead of

  recorder.record()
As the latter allows better error control and also add something like record(60). Which would start a timer and stop after 60seconds.
1 comments

Thanks for the suggestion! The `send` command is able to send any of the valid commands, but the library also allows you to do `recorder.rec()` and `recorder.stop()`.

Passing the time as an argument is a good idea! I'll take it into account.