Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setClientRole not working after joining a channel #29

Open
jatintaggbox opened this issue Sep 27, 2021 · 1 comment
Open

setClientRole not working after joining a channel #29

jatintaggbox opened this issue Sep 27, 2021 · 1 comment

Comments

@jatintaggbox
Copy link

Hello all,

if I use client.setClientRole after joining a channel and then use client.publish() it says "AgoraRTCError INVALID_OPERATION: audience can not publish stream";

I think we can use setClientRole after joining as an audience. I am using "agora-rtc-sdk-ng" version "^4.7.0" for Agora SDK. Please help if it is bug or I am doing something wrong.

Thank you in advance

@plutoless
Copy link
Contributor

i believe setClientRole is an async function. have you waited till it finished before calling publish?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants