muaz-khan / RecordRTC

RecordRTC is WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
https://www.webrtc-experiment.com/RecordRTC/
MIT License
6.57k stars 1.76k forks source link

0 byte recordings #352

Open philest opened 6 years ago

philest commented 6 years ago

Users are producing 0-byte recordings very frequently, though the behavior is not deterministic. @muaz-khan What's the best solution? This is a pretty critical error for us.

ZachMoreno commented 6 years ago

Same here,

The issue was specific to Chrome 61 (macOS High Sierra) for me. I updated to Chrome 62 & all is well.

ZachMoreno commented 6 years ago

Logs from Chrome 61 Imgur

Logs from Chrome 62 Imgur

philest commented 6 years ago

Also noting that this behavior is occurring in earlier Chrome versions— one recent user had Chrome 55.0.2883.95.

It seems not very pragmatic to expect users to update to the bleeding edge Chrome release. I have serious doubts about using RecordRTC in production.

muaz-khan commented 6 years ago

@ZachMoreno You can use recorderType: StereoAudioRecorder instead.

tikamchand06 commented 6 years ago

Hello I'm still facing this issue on DeepIn 15.5 Linux based system with chrome Version 63.0.3239.132 (Official Build) (64-bit) and also on some windows 10 system with latest chrome v66.

The same code is working on Windows, MacOS and even on Ubuntu.

Please provide a solution for this.

Here is the log details: deepinscreenshot_select-area_20180517120337

muaz-khan commented 6 years ago

Hi @tikamchand06, are you able to see your own camera? Because first log line is: NavigatorUserMediaError:MediaDeviceFailedDueToShutDown

tikamchand06 commented 6 years ago

Hi @muaz-khan ,

I think I have found the issue but unable to solve it.

if I use 'screen' constraint in chrome desktopCapture api, it works fine. like chrome.desktopCapture.chooseDesktopMedia(['screen''], onAccessApproved);

but when I use 'window' and select a particular application for recording it doesn't records anything. For ex: chrome.desktopCapture.chooseDesktopMedia(['window'], onAccessApproved);

Please provide the solution.