logo
On this page
2021-09-24

Common audio issues

Products / Plugins:Video Call / Audio Call / Live streaming
Platform / Framework:iOS / Android / macOS / Windows

To prevent the repeated sound collection during the local preview and the echo, you need to set the mute property of the target video to true.

Check whether the muted property of the video tag object of the played stream has been set properly.

  • true: Silent mode

  • false: Unsilent mode

Use this configuration zg.createStream({camera:{audio:true,video:false}}) in the createStream method. After configuration, the browser only asks for microphone permission, and only audio streams will be published.

  1. To mute a specified stream, call the setPlayVolume method with the stream ID, and set the volume to 0. To mute multiple streams, call this method in order after stream playing.

  2. To not receive the audio streams of a specified remote user, set the mute property to false when calling the mutePlayStreamAudio. To mute multiple multiple users, call this method in order before or after stream playing.

  3. To mute all streams, call the muteSpeaker method to disable the output of the audio streams. After configuration, the SDK won't play all audio streams when you playing streams and using the media player.

Because the SDK still publishes muted audio data after the microphone is turned off. This case also happens works for the mutePublishStreamAudio method.

Previous

Sound issues

Next

Common issues of the Express SDK