livekit / client-sdk-android

LiveKit SDK for Android
https://docs.livekit.io
Apache License 2.0
176 stars 69 forks source link

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

Closed User-Admin closed 9 months ago

User-Admin commented 9 months ago

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

  1. 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
  2. 10 seconds later, you can see in the room that his audio is unmuted, but no one else in the room can hear him
  3. Or broadcast via a physical button (broadcast reception works fine), both of which have no sound
  4. If you bring the APP to the foreground, other people in the room can hear it

Device Info:

User-Admin commented 9 months ago

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