set micAudioMode only to specific user
Hi...
is there a way I can setmicAudioMode
only to owner or specific user of the room ?
Answers
-
yes and no. Since
micAudioMode
` applies to the outgoing tracks and applied client-side, you can chose at join time whether or not you apply it based on the user. That said, we don't really support changing that setting once joined so you need to know if the user should have those settings before join which I'm betting may be tricky? I'm not sure your use case. For owners, you could usepreAuth()
to check if the person is owner before joining and setting that flag. To do this, after youpreAuth()
you simply checkparticipants().local.owner
. Hope this helps!1 -
Hi....Thanks
I have set
micAudioMode
while creating callObject and it worked. but when I setmicAudioMode
while joining only for owner as in the below code it did not work. can you please let me know is there any wrong in the below codeawait callObject.join({
dailyConfig: {
micAudioMode: 'music',
}
}
0