MuteAudio

Subscribes or unsubscribes to an audio stream.

bool MuteAudio(bool mute, Error* err);
Since
v4.5.0

Audience member can call this method to decide whether to subscribe to the host's audio stream.

Call timing

Call this method after OpenWithUrl.

Restrictions

None.

Parameters

mute
Whether to subscribe to the audio stream of the host:
  • true: Subscribe to the audio stream.
  • false: Do not subscribe to the audio stream.
err
The state or error information: Error.

Returns

Whether the subscription or unsubscription is successful:
  • true: Succeeds.
  • false: Fails.