Closed clabe45 closed 1 year ago
Hey, yes to both. It would be a number
in seconds, and it would stop after that many seconds passes. The record
function already supports a duration
, you can use that for reference.
@clabe45 for this to work, do we just need to update this._endTime
to be this.currentTime + duration
?
Yeah, move the assignment from stream
to play
(stream
calls play
)
I have https://github.com/etro-js/etro/pull/208 for this
Would it be possible to get more context on this? I'd love to tackle it.
Would
duration
just be anumber
that represents seconds? And is the idea just that ifplay()
is passed a duration, the move would just play for that many seconds?