Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).

getRegion() func return "unauthorized"

Bikbaev__Timur1
Beginner
436 Views

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

0 Kudos
7 Replies
Bikbaev__Timur1
Beginner
436 Views

MCU version that we are using for the moment = 3.5.2

0 Kudos
Qiujiao_W_Intel
Employee
436 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
Bikbaev__Timur1
Beginner
436 Views

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

0 Kudos
Bikbaev__Timur1
Beginner
436 Views

maybe you can share 3.5.2 documenation about that?

0 Kudos
Qiujiao_W_Intel
Employee
436 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
Bikbaev__Timur1
Beginner
436 Views

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

0 Kudos
Qiujiao_W_Intel
Employee
436 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
Reply