Sometimes track.release() doesn't work
See original GitHub issueAfter call ended I want to turn off the camera, I’m using next method:
localStream.getTracks().forEach(stream => {stream.release()});
I see that this method is triggering…
BUT sometimes I see that on my iPhone the green light is ON which means that camera is still using. Also if I debugging it on iPhone I see
[VideoCaptureController] Capture will stop
[VideoCaptureController] Capture stopped
from RCTLog.js:47,
BUT I see it sometimes, not always, also facing behaviour that I see corresponding log that Capture stopped, but the green light is ON.
- React Native version: 63.3
- react native webrtc: 1.87.3
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (5 by maintainers)
Top Results From Across the Web
Drag and drop not working - Selenium Webdriver
Drag and Drop functionality won't work, if application is built on HTML5. So, we can make this work with the support of draganddrop.js....
Read more >How to Release and Reset the Emergency Cord on a Garage ...
The emergency release cord disconnects the trolley through attachment point from the opener carriage so that the door can slide along the track, ......
Read more >Fix program errors and improve code - Visual Studio (Windows)
This article describes some basic ways Visual Studio can help you find and fix problems in your code, including build errors, code analysis, ......
Read more >Final Cut Pro release notes - Apple Support
Fixes an issue in which Final Cut Pro would sometimes load an incorrect project into the timeline. Resolves an issue in which thumbnails ......
Read more >Troubleshooting - ImageJ Wiki
If the first method does not work, and you can reproduce the hang: Launch ImageJ again, this time from the console as described...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The release() call is only needed for local streams. It does nothing on remote ones.
Hi, I got the same problem, but i don’t use simple-peer. I post my code on stack, https://stackoverflow.com/questions/70072937/react-native-webrtc-how-to-end-a-call-properly if you have time to help me it’s a pleasure, i’m very stuck. @Sheleya do you find solution?