removeUser

Removes a user from video mixing during the CDN live streaming.

public int removeUser(int uid) {
    if (!transcodingUsers.containsKey(uid))
      return -Constants.ERR_INVALID_ARGUMENT;

    transcodingUsers.remove(uid);
    userCount = transcodingUsers.size();
    return Constants.ERR_OK;
  }

Parameters

uid
The ID of the user to be removed.

Returns

  • 0: Success.
  • < 0: Failure.