AgoraIO / Basic-Video-Broadcasting

Sample app to join/leave a channel, set the role as a host/audience, mute/unmute, switch between front/rear cameras, and set the video parameters.
MIT License
269 stars 287 forks source link

Remove Audio and Video for Viewer when app is goes in background Android #115

Open DasJhaman opened 4 years ago

DasJhaman commented 4 years ago

Hi how can i remove audio and video when app goes in background asking about Viewer, for broadcaster i have just called stopBroadcast and startBroadcaster in onResume and onPause method, but this is not working for Viewer, your help highly appreciated.

Thanks

plutoless commented 4 years ago

you mean you want to stop subscribing remote video/audio when audience client goes to background, right? You may try muteRemoteVideoStream/muteRemoteAudioStream

KhaliqCitrusbits commented 2 years ago

Any Update on this?