WebRTC-Experiment icon indicating copy to clipboard operation
WebRTC-Experiment copied to clipboard

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

Open derick31 opened this issue 6 years ago • 3 comments

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?

derick31 avatar Jul 24 '18 09:07 derick31

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?

brtSM avatar Aug 02 '18 03:08 brtSM

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.

kim00kim avatar Aug 14 '18 10:08 kim00kim

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.

shanakard avatar Apr 30 '19 11:04 shanakard