Open armanate opened 5 months ago
I think what's missing is releasing the DeviceDiscovery object - I would recommend saving it in your Activity or ViewModel so it stays around for the duration of your broadcast session, and can release it when the Activity or ViewModel is destroyed.
I have modified the camera initialization in the example project to support the zoom feature with the following code:
Previously, the default code was:
However, I have encountered an issue. When session?.release() is called, the microphone resource is not being released, and the Android OS displays the microphone usage icon in the status bar, indicating that "Mic access is being used by BasicBroadcast."