Common audio issues
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.
-
To mute a specified stream, call the
setPlayVolumemethod with the stream ID, and set the volume to 0. To mute multiple streams, call this method in order after stream playing. -
To not receive the audio streams of a specified remote user, set the
muteproperty tofalsewhen calling themutePlayStreamAudio. To mute multiple multiple users, call this method in order before or after stream playing. -
To mute all streams, call the
muteSpeakermethod 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.
