subscribeAllStreams abstract method

Future<int?> subscribeAllStreams(
  1. MediaStreamType type
)

Subscribes to all remote media streams captured by camera/microphone, or updates the subscribe options of all subscribed user.

type: Media stream type, used for specifying whether to subscribe to the audio stream or the video stream.

Notes:

  • If the subscription options conflict with the previous ones, they are subject to the configurations in the last call.
  • In the Conference Mode, if the number of media streams exceeds the limit, we recommend you call subscribeStream to subscribe each target media stream other than calling this API.
  • After calling this API, you will be informed of the calling result with RTCRoomEventHandler.onStreamSubscribed.
  • Once the local user subscribes to the stream of a remote user, the subscription to the remote user will sustain until the local user leaves the room or unsubscribe from it by calling unsubscribeStream.
  • Any other exceptions will be included in RTCRoomEventHandler.onStreamStateChanged, see ErrorCode for the reasons.

Implementation

Future<int?> subscribeAllStreams(MediaStreamType type);