#890·RecordRTC

When the startRecording method is called, the video will freeze for a moment

Author: winddamageCreated Oct 30, 2025Updated Oct 30, 2025

`// start this.recorder = new RecordRTCPromisesHandler(this.videoEl.srcObject.clone(), { type: 'video', mimeType: 'video/mp4', checkForInactiveTracks: true }) this.recorder.stream = this.videoEl.srcObject.clone() this.recorder.startRecording() this.isRecording = true

// end this.isRecording = false this.recorder .stopRecording() .then(async () => { const blob = await this.recorder.getBlob() invokeSaveAsDialog(blob, 'test.mp4') }) .catch(err => { console.error(err.toString()) }) .finally(async () => { this.recorder.stream.getTracks(t => t.stop()) await this.recorder.reset() await this.recorder.destroy() this.recorder = null })`