setSubscribeFallbackOption abstract method

Future<int?> setSubscribeFallbackOption(
  1. SubscribeFallbackOption option
)

Sets the fallback option for subscribed RTC streams..

You can call this API to set whether to lower the resolution of currently subscribed stream under limited network conditions.

Return value:

Notes:

  • You must call this API before the user enters the room.
  • When the fallback option is set, the local user will receive RTCVideoEventHandler.onSimulcastSubscribeFallback when the subscribed audio/video stream falls back or resumes from a fallback.
  • You can alternatively set fallback options in th console, which is of higher priority.

Implementation

Future<int?> setSubscribeFallbackOption(SubscribeFallbackOption option);