Put the APP of the project example (mute by default) back to the background, and after 5 seconds, set it to non-mute, so there is no sound when speaking in the room #347
Describe the bug
After the APP entering the room (which is set to silent by default) goes back to the background, he can receive the sound of other members in the room, but he sets the microphone to non-silent by physical buttons or other means, and there is always no sound. I also tried to use the service and use a foreground process to keep alive, but it still does not work
To Reproduce
Steps to reproduce the behavior:
1 Upon entering the room, local participants were set to mute
Press the Home button to put it back in the background, and when it does, start a timer that will perform a non-muted action after 10 seconds
10 seconds later, you can see in the room that his audio is unmuted, but no one else in the room can hear him
Or broadcast via a physical button (broadcast reception works fine), both of which have no sound
If you bring the APP to the foreground, other people in the room can hear it
I'm sorry, is my problem,I forgot the required service attribute for higher versions of Android.
android:foregroundServiceType="microphone"
Once you add it, the issue will no longer exist
Describe the bug After the APP entering the room (which is set to silent by default) goes back to the background, he can receive the sound of other members in the room, but he sets the microphone to non-silent by physical buttons or other means, and there is always no sound. I also tried to use the service and use a foreground process to keep alive, but it still does not work
To Reproduce Steps to reproduce the behavior: 1 Upon entering the room, local participants were set to mute
Device Info: