Vonage-Community / sample-video-flutter-app

Apache License 2.0
5 stars 1 forks source link

How can I stop the camera in multi video? #5

Closed bizk-sato closed 1 year ago

bizk-sato commented 1 year ago

I use session.disconnect() and then delete MultiVideo component from view to finish the call. Even after that the camera is still on for android emulator. So if I make another call, there occurs an error because it tries to start camera which is already on.

So when I finish calling, I want to stop the camera. Is there any way to do this?

devwithzachary commented 1 year ago

The way to do this is with the PublisherKit.onStop() method. This releases the camera.

bizk-sato commented 1 year ago

@devwithzachary Solved it. Thank you.