MuteVideo

Subscribes or unsubscribes to a video stream.

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

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

Call timing

Call this method after OpenWithUrl.

Restrictions

None.

Parameters

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

Returns

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