Updated on 2023-11-01 GMT+08:00

FAQs

  • Question 1: Why does a parameter error occurs when I call the setVideoEncoderConfig API?

    The resolution can be set successfully only when you comply with the code list recommended by the Huawei SDK system.

  • Question 2: What are the possible causes for preventing users from joining other rooms?
    • 1: Only one joiner can join other rooms at a time.
    • 2: A user can join up to four rooms at a time, and the room IDs must be unique.
  • Question 3: When the remote audio mode is set to HRTC_REMOTE_AUDIO_SUBSCRIBED, how do I mute the audio from remote users and make it a default setting?

    HRTC_REMOTE_AUDIO_SUBSCRIBED needs to be called manually for subscription. When a user joins a room (joinRoom), the method with the HRTCJoinParam class is called. After the instance of this class is created, you can set autoSubscribeAudio to false, so that the user, upon joining a room, cannot hear the audio from remote users. To unmute the audio, manually call muteRemoteAudio and subscribe to a specified user by the user ID.

  • Question 3: Why does the program crash when onVideoStats, onAudioStatus, or onAuxiliaryStreamStatsNotify callback is triggered?

    The pointers of the input parameters localStats and remoteStats of the callback function may be null. Ensure that the pointers are not null before you use the parameters. Otherwise, a null pointer error may occur.

  • Question 4: Why can I hear my own voice from the local receiver?

    This is because you have set the user ID to your own when you call the muteRemoteAudio API.

  • Question 5: Can I enable setExternalAudioCapture or setExternalVideoCapture in a room?

    No, they need to be called before a user joins a room.