Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
44 Views

getRegion() func return "unauthorized"

when we trying to call getRegion method for second stream we receive "unauthorized" ( for first stream getRegion() works) . Ive checked MCU logs - nothing there.

Tags (2)
0 Kudos
7 Replies
Highlighted
44 Views

MCU version that we are using for the moment = 3.5.2

0 Kudos
Highlighted
44 Views

Only admin role user can get all user's stream info (like region), normal user can only get his own stream info. If you want to get all the stream info please use admin role

0 Kudos
Highlighted
44 Views

Thanks for reply Qiujiao, how i can change role to admin?

0 Kudos
Highlighted
44 Views

maybe you can share 3.5.2 documenation about that?

0 Kudos
Highlighted
44 Views

You can specify role for user when calling createToken API, please download 3.5 client js document on this:

void N.API.createToken ( string  room,
    string  username,
    string  role,
    string  type,
    object  preference,
    function  callback,
    function  callbackError 
  )
 
0 Kudos
Highlighted
44 Views

Qiujiao, can you share link to 3.5 documentation cause cannot find it

0 Kudos
Highlighted
44 Views

You can go to https://software.intel.com/en-us/webrtc-sdk/download and download update 3.5.2 package, documents are included, please refer N.API.createToken in js document.

0 Kudos