Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StopCameraAsync does not remove green dot and turn off the light front of the camera on IOS #178

Open
hercul1017 opened this issue Sep 19, 2024 · 0 comments

Comments

@hercul1017
Copy link

Hi,

After moving to another pages the green dot indicating the camera still on does not disappear even after calling StopCameraAsync. I tried following code but it did not work. StopCameraAsync returns Success, but green dot continues to display. Newer models of IPhones light next the front camera that I use, also continues to light and it does not turn off.

    MainThread.BeginInvokeOnMainThread(async () =>
    {
        cameraView.FlashMode = FlashMode.Disabled;
        cameraView.TorchEnabled = false;

        if (await cameraView.StopCameraAsync() == CameraResult.Success)
        {                 
        }            
    });

Thanks for any help,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant