enableWebSdkInteroperability abstract method

Future<void> enableWebSdkInteroperability(
  1. bool enabled
)

Enables interoperability with the Agora Web SDK (applicable only in the live streaming scenarios).

Deprecated: The SDK automatically enables interoperability with the Web SDK, so you no longer need to call this method. You can call this method to enable or disable interoperability with the Agora Web SDK. If a channel has Web SDK users, ensure that you call this method, or the video of the Native user will be a black screen for the Web user. This method is only applicable in live streaming scenarios, and interoperability is enabled by default in communication scenarios.

  • enabled Whether to enable interoperability: true : Enable interoperability. false : (Default) Disable interoperability.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> enableWebSdkInteroperability(bool enabled);