How to Pin video to Host only ?


#1

Hi Team,

Is there any way we can pin video to Host ?

So that no matter who speaks, the screen only shows host video to all participants.

Thanks


#2

Hi,

On Android SDK, you can take a look at:“boolean spotLightVideo(boolean on, long userId)”

Best

 


#3

Thanks Wei,
but how to get host id from code ?


#4

Hi, 

we don’t have an API to get user id directly, but you can do in this approach:

InMeetingUserList userList = mInMeetingService.getInMeetingUserList();

int count = userList.getUserCount();

for(int i=0; i<count; i++) {

     InMeetingUserInfo userInfo = userList.getUserInfoByIndex(i));

     if(userInfo.isHost()) {

        return userInfo.getUserId()

  }

}

and then pass this id to spotLightVideo API.

Best