startScreenCapture abstract method
Starts capturing screen sharing streams with the internal capturing module of th RTC SDK.
Return value:
0
: Success.<0
: Failure. See ReturnStatus for the reason.
Notes:
- Screen sharing related APIs are only applicable to iOS 12 and above.
- For iOS, if you start the Extension from the iOS control center, this API do not need to be called.
- After the streams are captured, you need to call RTCRoom.publishScreen to publish the streams.
- After this API is successfully called, the local user will receive RTCVideoEventHandler.onVideoDeviceStateChanged and RTCVideoEventHandler.onAudioDeviceStateChanged.
- Call RTCVideo.stopScreenCapture to stop capturing screen sharing streams.
Implementation
Future<int?> startScreenCapture(ScreenMediaType type);