Agora-Flutter-SDK icon indicating copy to clipboard operation
Agora-Flutter-SDK copied to clipboard

Change Role from Guest to Host

Open bhavin-concetto opened this issue 3 years ago • 2 comments

Describe the bug

  • New host unable to broadcast. Is it necessary to leave the channel and re-join again to publish as the Broadcaster like JS example provided?

To Reproduce Steps to reproduce the behavior:

  1. User A starts the streaming with role Broadcaster.
  2. Now User B joins. User A made user B the host.
  3. User B calls await _engine.enableLocalAudio(true); await _engine.enableLocalVideo(true); await _engine.enableVideo(); await _engine.startPreview(); await _engine.setClientRole(ClientRole.Broadcaster);

Expected behavior User B should be able to send his stream to all the users

Smartphone (please complete the following information):

  • Device: Motorola
  • OS: 7.1.1
  • agora_rtc_engine: ^4.2.0
  • agora_rtm: ^1.0.1

bhavin-concetto avatar Feb 15 '22 06:02 bhavin-concetto

try setClientRole first before all other apis

plutoless avatar Feb 15 '22 06:02 plutoless

Not working @plutoless

bhavin-concetto avatar Feb 15 '22 07:02 bhavin-concetto

If you still face this issue, please try upgrading to the latest version to see if it works or not.

littleGnAl avatar Dec 07 '23 09:12 littleGnAl

I will re-open if I will get this issue again

bhavin-concetto avatar Dec 07 '23 09:12 bhavin-concetto

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

github-actions[bot] avatar Dec 14 '23 10:12 github-actions[bot]