setExternalMediaProjection abstract method
Configures MediaProjection outside of the SDK to capture screen video streams.
This method is for Android only. After successfully calling this method, the external MediaProjection you set will replace the MediaProjection requested by the SDK to capture the screen video stream. When the screen sharing is stopped or RtcEngine is destroyed, the SDK will automatically release the MediaProjection.
mediaProjection
An object used to capture screen video streams.
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> setExternalMediaProjection(int mediaProjection);