Help Center> SparkRTC> FAQs> SDK Usage> What Is the Difference Between enableLocalAudioStream and muteLocalAudio?
Updated on 2022-10-10 GMT+08:00

What Is the Difference Between enableLocalAudioStream and muteLocalAudio?

The difference is as follows:

  • enableLocalAudioStream: indicates whether to enable local audio data collection. The function is enabled by default. When it is disabled, local audio data collection and upstream transmission are disabled.
  • muteLocalAudio: indicates whether to send audio streams to the background. When this function is disabled, audio and video data will continue to be sent in the form of mute packets at an extremely low bitrate.

SDK Usage FAQs

more