Skip to content

Commit

Permalink
fixup! [PR feat] advanced updates for recorder feature (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric2788 committed Apr 13, 2024
1 parent 0fc3cb9 commit c029f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/recorder/recorders/capture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ class CaptureRecorder extends Recorder<CaptureOptions> {
console.debug('no buffer found, restarting the recorder!')
this.stop()
await this.start()
clearInterval(this.videoTrackChecker)
clearInterval(this.bufferAppendChecker)
clearInterval(this.videoTrackChecker)
}
}, 1000)
}
Expand Down Expand Up @@ -135,7 +135,7 @@ class CaptureRecorder extends Recorder<CaptureOptions> {
}
this.recorder.onerror = (e) => {
console.error('media recorder error: ', e)
this.errorHandler(new Error('MediaRecorder error: ' + e.type))
this.errorHandler?.(new Error('MediaRecorder error: ' + e.type))
}
this.recorder.onstop = () => {
console.debug('media recorder stopped')
Expand Down

0 comments on commit c029f47

Please sign in to comment.