public void CommanderChange(bool isCommander)
 {
     if (isInAgoraAudio)
     {
         CLIENT_ROLE role = isCommander ? CLIENT_ROLE.BROADCASTER : CLIENT_ROLE.AUDIENCE;
     #if UNITY_IOS || UNITY_ANDROI
         mRtcEngine.SetClientRole(role);
     #else
         mRtcEngine.SetClientRole(role, null);
     #endif
     }
 }
Beispiel #2
0
 /**
  * Set the role of user: such as broadcaster, audience
  *
  * @param role the role of client
  * @param permissionKey the permission key to apply the role
  * @return return 0 if success or an error code
  */
 public int SetClientRole(CLIENT_ROLE role)
 {
     return(setClientRole((int)role));
 }
Beispiel #3
0
 /**
  * Set the role of user: such as broadcaster, audience
  *
  * @param role the role of client
  * @param permissionKey the permission key to apply the role
  * @return return 0 if success or an error code
  */
 public int SetClientRole(CLIENT_ROLE role, string permissionKey)
 {
     return(setClientRole((int)role, permissionKey));
 }