MeetingScreenCaptureEvent receives the ongoing state of the local screen capture object and is registered through MeetingEngine.screenCaptureEvent. You can extend MeetingScreenCaptureSimpleEvent and override only what you need.
Usage notes
- This event only describes the Android MediaProjection / SRTC local capture state. To know who starts or stops sharing in the meeting, listen to
MeetingRoomEvent.onRoomShareStart()/onRoomShareStop(). - Callbacks stay on the actual source thread of the screen capture pipeline; after receiving a terminated or error state, your app should clean up the sharing UI and any MediaProjection resources it holds accordingly.
Methods
onScreenCaptureStateChanged(state, message)
Returns: None (
Unit). The callback stays on the screen capture source thread.