muteAudio
Subscribes or unsubscribes to an audio stream.
public void muteAudio(boolean mute) throws RteException;
- 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.
Exception
If the method call fails, the SDK throws RteException and returns an error message. You need to catch the exception and handle it.