Closed milevy1 closed 10 months ago
@milevy1 I was able to replicate the issue. It seems that our Custom Capturer Sample was not updated with out latest improvements to our default video capturer, where we are now properly releasing the capturer on switching cameras and onPause() and onDestroy(). I will work on updating the sample and will let you know when it is ready to use.
@goncalocostamendes, just to clarify, we are not using the Custom Capturer Sample. Our application is using a Publisher without a custom capturer so we are using the BaseVideoCapturer, for example:
new Publisher.Builder(context).build();
Do we need to add a custom capturer to fix this or will the BaseVideoCapturer include this fix in an updated release?
@milevy1, I'm sorry, but please go through Support. I'll close this in the meantime.
Describe the bug My team is attempting to migrate our application from the deprecated Camera API to Camera2. However we are encountering an issue with toggling the flash while on a video call.
Toggling flash (torch) is throwing an error that the camera is in use, but only after after cycling the camera, every other cycle.
I found these other two old issues that seem similar, but they were closed without a resolution and they don't mention the cycleCamera causing issues. https://github.com/opentok/opentok-android-sdk-samples/issues/110 https://github.com/opentok/opentok-android-sdk-samples/issues/282
To Reproduce
Expected behavior I expect to be able to toggle the flash on/off. It works for every other cycleCamera just fine. However, every other cycleCamera, toggling the flash does not work
Screenshots n/a
Device (please compete the following information):
Additional context n/a