question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sometimes track.release() doesn't work

See original GitHub issue

After 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:closed
  • Created 3 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
saghulcommented, Apr 28, 2021

The release() call is only needed for local streams. It does nothing on remote ones.

1reaction
flhembercommented, Nov 23, 2021

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found