muaz-khan / WebRTC-Experiment

WebRTC, WebRTC and WebRTC. Everything here is all about WebRTC!!
https://www.webrtc-experiment.com/
MIT License
11.78k stars 3.95k forks source link

Recorded video using MediaStreamRecorder freezes on the first frame but working when WhammyRecorder is used. #596

Open derick31 opened 6 years ago

derick31 commented 6 years ago

I am currently trying to implement a screen sharing with recording. The user could either share screen and record it or receive a screen share and also record it. When I am the screen sharer and the recorder. I could successfully record and play the recorded video. But when I record a remote screen sharer. Every time I download it. The file size is normal. But When I play the video. It freezes on the first frame and does not continue playing. This is using the MediaStreamRecorder recorderType. But when I changed it to WhammyRecorder. It could be played. What are the scenarios where in the video is succesfully recorded in WhammyRecorder but not on MediaStreamRecorder? And what causes for the recorded video on MediaStreamRecorder to not play and pause on the first frame?

brtSM commented 6 years ago

Encountered the same problem. I also used the MediaStreamRecorder and the file downloaded for the recording of the remote screen share cannot play (stuck at the first frame).

@muaz-khan May we get insights about this?

kim00kim commented 6 years ago

I also encountered the same problem. First, I thought that the stream was broken. But when the stream was local, the recorded video was working.

WhammyRecorder produced heavier file compared to MediaStreamRecorder.

shanakard commented 5 years ago

I have encountered with the same issue. One additional thing to note is, this only hapens for remote video only streams. When the stream has a audio and a video track the MediaStreamRecorder outputs a playable file. As a workarround I capture a local audio track (mute it) and add to the stream to get a proper recording output and it works.