SamuelScheit / puppeteer-stream

A Library for puppeteer to retrieve audio and/or video streams
MIT License
333 stars 105 forks source link

Expose the most recent MediaRecorder timecode on the stream object. #83

Closed bradisbell closed 1 year ago

bradisbell commented 1 year ago

Some usages of the MediaRecorder data require access to the timecode that is included with dataavailable events. To avoid an API change, I have added a timecode property to the stream class. This will contain the most recently emitted timecode value, and can be used to approximate the current timestamp for data being read from the stream, if the stream is read in realtime.

SamuelScheit commented 1 year ago

published under version 2.1.4

npm i puppeteer-stream@2.1.4