1

I am using agora.io for video call (1 to 1 video call). But I need to all user should leave (video stream should stop, as like leave buttion click) when my host user leave. I have read all documentation but I did not found any solution. I have tried banned user API call but it is not working as my specification. If any one know the ways to leave all user when host user leave please help me. I am appriciate any kind of help or clue. Advance Thanks

Kamrul
  • 21
  • 3

1 Answers1

1

you're going to have to get crafty with Agora callbacks and internal logic to do this.

To determine the host UID, you can use SetClientRole() or OnClientRoleChangedHandler()

Listen if the host has left using OnUserOfflineHandler() using the host's UID. If "host", then tell every user to LeaveChannel()

I hope this helps!