I'm currently playing around with Media Recorder and trying to build a video recorder web app like Vine that allow me to pause and resume the camera then generate the final video after I stop the camera. One main issue I'm facing is when you switch the camera from back to front or vice versa, the stream basically will stop then start a new stream, and Media Recorder API also will automatically stop the recording. So I need to create a new instance of Media Recorder that will record the new stream.
So if I switch 3 times between camera this means I will have 3 blobs from 3 Media Recorder that I need to concat and produce a single blob that playable on when the users like to download the video. I can play those 3 videos in video element just like a single video by utilizing Media Source. So the Media Blob like proposed here looks like a solution for me to concat the video.
One thing also could be a solution for this is by extending the Media Source it self to allow us export the the MediaSource as a single blob file that playable when the user download it as a video file. Media Source could be similar like a timeline in video editor where you can put together a different media sources to present as a single playable video. For now this what I'm doing to concat, trims, or split the blobs and play it in a video element, but it's not allow me to download it as a single playable video.
I'm currently playing around with Media Recorder and trying to build a video recorder web app like Vine that allow me to pause and resume the camera then generate the final video after I stop the camera. One main issue I'm facing is when you switch the camera from back to front or vice versa, the stream basically will stop then start a new stream, and Media Recorder API also will automatically stop the recording. So I need to create a new instance of Media Recorder that will record the new stream.
So if I switch 3 times between camera this means I will have 3 blobs from 3 Media Recorder that I need to concat and produce a single blob that playable on when the users like to download the video. I can play those 3 videos in video element just like a single video by utilizing Media Source. So the Media Blob like proposed here looks like a solution for me to concat the video.
One thing also could be a solution for this is by extending the Media Source it self to allow us export the the MediaSource as a single blob file that playable when the user download it as a video file. Media Source could be similar like a timeline in video editor where you can put together a different media sources to present as a single playable video. For now this what I'm doing to concat, trims, or split the blobs and play it in a video element, but it's not allow me to download it as a single playable video.