How to convert array of png image data into video file

For a full browser support way, you’ll have to send your image batch to the server then use some server-side program to do the encoding. FFmpeg might be able to do it. But in newest browsers the canvas.captureStream method, has been implemented. It will convert your canvas drawings to a webm video stream, recordable with … Read more

MediaRecorder.stop() doesn’t clear the recording icon in the tab

This is because this recording icon is the one of getUserMedia streaming, not the one of MediaRecorder. When you stop the MediaRecorder, the stream is still active. To stop this gUM stream (or any other MediaStream), you’d call MediaStreamTrack.stop(). stream.getTracks() // get all tracks from the MediaStream .forEach( track => track.stop() ); // stop each … Read more