setSubscribeFallbackOption abstract method
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:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
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);