Coder Social home page Coder Social logo

Comments (12)

thierry2015 avatar thierry2015 commented on May 16, 2024 1

I currently have the same issue, the callback is not called sometimes. I tried to isolate a typic case, the only one that I found was when stopRecording() was called less than 500ms after startRecording(), but the problem is still happening "randomly" for other cases. (I currently cannot isolate part of the problem)

I currently have a website that relies on this feature, I will continue to investigate the problem, but an update would be welcomed!

from recordrtc.

cdanzig avatar cdanzig commented on May 16, 2024 1

I have also gotten reports of the stopRecording callback not firing in Chrome. Have yet to reproduce.

from recordrtc.

karls avatar karls commented on May 16, 2024 1

I have also stumbled on the same issue as previous posters.

I have an external monitor (Thunderbolt display), which I use as my sole monitor most of the time -- laptop lid is closed. I can seemingly reproduce this behaviour when I select the Thunderbolt's camera, but Default or Built-in microphone (not Thunderbolt's own microphone). Having said that, this behaviour has also happened without using the external monitor, while working on the laptop.

I have noticed that when this behaviour (callback not getting called) happens, it is accompanied by ~1-2s freeze in the recorder initialisation. After that, the video starts, but then hangs again for a few seconds. When I stop the video, stream gets stopped, but the callback does not fire.

It looks like when there are multiple video/audio devices available and the "wrong" ones are selected, bad things happen. But given that this weird behaviour has also happened with just one camera and one microphone available, perhaps there is a deeper issue with how Chrome handles selecting media devices?

@muaz-khan any thoughts on this?

from recordrtc.

mauliksoni110 avatar mauliksoni110 commented on May 16, 2024

I am also facing the same, any workaround?

from recordrtc.

karls avatar karls commented on May 16, 2024

@mauliksoni110 the "workaround" is to choose the correct device(s) before initialising the recorder. Unfortunately I don't yet know if or how this can be done programmatically, in the case of multiple available media devices. Given that this behaviour occasionally also happens with just one camera and one microphone, I'm not sure selecting the device programmatically would fix it.

from recordrtc.

karls avatar karls commented on May 16, 2024

Actually, this does not seem to be a RecordRTC issue at all. I have not restarted by browser (Chrome) since I noticed this issue happening with our platform in order to investigate this issue. I can replicate the same behaviour on https://simpl.info/mediarecorder/ without using my external monitor, meaning that only 1 webcam and 1 mic is available for use. The result after recording looks like this -- no recorded blobs. Everything looks fine, I can see the stream in <video>, but after recording a clip, nothing shows up.

No recorded blobs

from recordrtc.

tdub7229 avatar tdub7229 commented on May 16, 2024

Also experiencing this problem on Chrome 56.0.2924.87. When this happens on my laptop (which only has one microphone and one camera), the recording light on my laptop stays on.

Here is the chrome console output when it fails:

commits.js:2 You can use ?simple=true to remove redundant HTML.
commits.js:4watchers 782
commits.js:4 forks 345
commits.js:4 followers 1188
gumadapter.js:31 spec:   {"video":{},"audio":true}
gumadapter.js:31 chrome: {"video":{},"audio":true}
RecordRTC.js:54 started recording video stream.
RecordRTC.js:789 Using recorderType: MediaStreamRecorder
RecordRTC.js:1693 Passing following config over MediaRecorder API.
Object {type: "video", mimeType: "video/webm;codecs=h264", disableLogs: false, getNativeBlob: false, video: video}
RecordRTC.js:90 Initialized recorderType: MediaStreamRecorder for output-type: video
RecordRTC.js:103 Stopped recording video stream.
stopRecording @ RecordRTC.js:103

When it does work as expected, it's the same as above, but this line is also output:

RecordRTC.js:140 video/webm;codecs=h264 -> 22.5 KB

from recordrtc.

karls avatar karls commented on May 16, 2024

Just to give an update to this -- some of our customers are having a fairly bad experience on Windows when another process has opened the webcam stream. Note that this does not seem to be the same issue as discussed here, but they might be related. I'm leaving this here for posterity.

I have also opened an issue on the Chromium bug tracker, https://bugs.chromium.org/p/chromium/issues/detail?id=690457, which also links to an issue on the Firefox bug tracker.

An operational update on my side is that we've stopped using RecordRTC for now and relying on just adapter.js. Adapter.js does not support Edge (no MediaRecorder), but we can live with it.

from recordrtc.

cdanzig avatar cdanzig commented on May 16, 2024

Just closed? No update?

from recordrtc.

muaz-khan avatar muaz-khan commented on May 16, 2024

I think it is fixed here: 41c93ba

from recordrtc.

ykmo-VIRNECT avatar ykmo-VIRNECT commented on May 16, 2024

Well.. I'm facing same problem

from recordrtc.

jaketrimble avatar jaketrimble commented on May 16, 2024

Also experiencing this issue with version 5.6.1 in Chrome 83.0.4103.61 (Official Build) (64-bit). Sometimes it fires the callback, but mostly it does not. Lots of debugging and no clues.

UPDATE:
My logic was calling .stop() on tracks before calling .stopRecording(). Putting .stopRecording() before stopping tracks has solved the problem for me.

from recordrtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.