setUsers [1/2]

Sets the users in batches in the CDN live streaming.

public void setUsers(ArrayList<TranscodingUser> users) {
    transcodingUsers.clear();
    if (users != null) {
      for (TranscodingUser user : users) {
        transcodingUsers.put(user.uid, user);
      }
    }
    userCount = transcodingUsers.size();
  }

Details

This method sets all users involved in the CDN live stream. This method replaces the old user data with the new TranscodingUser data.

Parameters

users
All users involved in the CDN live streaming. See TranscodingUser for details.