Screen Sharing on moible is not working

I’m using jitsi meet sdk inside a React Native app. The screen sharing doesn’t work:
On Android, the button is visible, when I tap it, it prompts for permission but on granting the permission, nothing happens. Then the second time I tap it, nothing happens (below is the logcat log for this scenario). Any feedback on what the issue may be and how to fix is appreciated! It’s a custom jitsi sdk build, version 5.1.0
On iOS the button is not even visible

: InCallWakeLockController: Releasing full wake lock: CSW.sA->CSFM.rF(csl)@Azg
10-31 15:58:53.985 507 988 I Telecom : CallAudioModeStateMachine: Message received: NEW_ACTIVE_OR_DIALING_CALL.: CSW.sA->CSFM.rF->CAMSM.pM_2001(csl)@Azg
10-31 15:58:53.989 24678 24847 I JitsiMeetSDK: AudioMode Selected audio device: SPEAKER
10-31 15:58:53.990 24678 24847 I JitsiMeetSDK: AudioMode Updating audio device list
10-31 15:58:53.990 507 976 I Telecom : CallAudioRouteStateMachine: Message received: USER_SWITCH_SPEAKER=1104, arg1=0: CSW.sAR->CARSM.pM_USER_SWITCH_SPEAKER(csl)@Azk
10-31 15:58:53.990 507 976 I Telecom : ActiveSpeakerRoute: Processing message USER_SWITCH_SPEAKER: CSW.sAR->CARSM.pM_USER_SWITCH_SPEAKER(csl)@Azk
10-31 15:58:54.135 24678 24742 I flipper : flipper: Certificate exchange complete.
10-31 15:58:54.425 24678 24846 I JitsiMeetSDK: [features/base/redux] redux state persisted. 19225e06da50484adb5df70cb3ca1415 → 807323e1458e19e72f83d96dff6a4b03
10-31 15:58:54.544 14084 14266 I WorkerManager: dispose()
10-31 15:58:54.544 14084 14266 W ThreadPoolDumper: Queue length for executor EventBus is now 11. Perhaps some tasks are too long, or the pool is too small.
10-31 15:58:54.675 507 968 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:58:54.844 507 968 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:58:54.955 24678 24846 D JitsiMeetSDK: [modules/qualitycontrol/ReceiveVideoController.js] Updating ReceiverVideoConstraints {“constraints”:{“285a3698”:{“maxHeight”:1080}},“defaultConstraints”:{“maxHeight”:0},“lastN”:-1,“onStageEndpoints”:[“285a3698”],“selectedEndpoints”:}
10-31 15:58:55.055 24678 24969 I org.webrtc.Logging: CameraStatistics: Camera fps: 9.
10-31 15:58:55.681 507 968 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:58:55.682 507 968 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:58:56.222 24678 24742 I flipper : flipper: Certificate exchange complete.
10-31 15:58:57.056 24678 24969 I org.webrtc.Logging: CameraStatistics: Camera fps: 9.
10-31 15:58:57.081 24678 24976 I org.webrtc.Logging: EglRenderer: Duration: 4001 ms. Frames received: 34. Dropped: 0. Rendered: 34. Render fps: 8,5. Average render time: 8251 us. Average swapBuffer time: 7471 us.
10-31 15:58:57.327 507 3621 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:58:57.462 507 3621 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:58:58.082 24678 24845 W ReactNativeJS: ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from ‘deprecated-react-native-prop-types’.
10-31 15:58:58.103 507 3621 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:58:58.125 421 464 D AudioFlinger: mixer(0xb4000075bc50f040) throttle end: throttle time(11)
10-31 15:58:58.187 24678 24678 I org.webrtc.Logging: SurfaceEglRenderer: : surfaceChanged: format: 4 size: 1074x2202
10-31 15:58:58.188 24678 24678 I org.webrtc.Logging: EglRenderer: setLayoutAspectRatio: 0.48773843
10-31 15:58:58.200 313 2067 D goldfish-address-space: claimShared: Ask to claim region [0xa89a4000 0xa92ac000]
10-31 15:58:58.237 507 4791 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:58:58.271 24678 24742 I flipper : flipper: Certificate exchange complete.
10-31 15:58:58.318 313 2067 D goldfish-address-space: claimShared: Ask to claim region [0xaa6d0000 0xaafd8000]
10-31 15:58:58.435 313 2067 D goldfish-address-space: claimShared: Ask to claim region [0xaafd8000 0xab8e0000]
10-31 15:58:58.468 485 485 E netmgr : qemu_pipe_open_ns:62: Could not connect to the ‘pipe:qemud:network’ service: Invalid argument
10-31 15:58:58.468 485 485 E netmgr : Failed to open QEMU pipe ‘qemud:network’: Invalid argument
10-31 15:58:59.057 24678 24969 I org.webrtc.Logging: CameraStatistics: Camera fps: 9.
10-31 15:58:59.246 24678 24846 I JitsiMeetSDK: [modules/RTC/ScreenObtainer.js] Using getDisplayMedia for screen sharing
10-31 15:58:59.254 507 968 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:58:59.272 507 3621 I ActivityTaskManager: START u0 {cmp=com.android.systemui/.media.MediaProjectionPermissionActivity} from uid 10173
10-31 15:58:59.272 507 531 D EventSequenceValidator: inc AccIntentStartedEvents to 2
10-31 15:58:59.278 351 351 I perfetto: ing_service_impl.cc:758 Configured tracing session 384, #sources:1, duration:5000 ms, #buffers:1, total buffer size:4096 KB, total sessions:1, uid:1071 session name: “”
10-31 15:58:59.279 350 350 I perfetto: probes_producer.cc:230 Ftrace setup (target_buf=384)
10-31 15:58:59.291 24678 24678 I PUSHER_WRAPPER: onPause: MainActivity
10-31 15:58:59.292 507 968 W ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (182446942)
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.293 507 968 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
10-31 15:58:59.297 507 507 W ActivityManager: Unable to start service Intent { act=android.service.contentcapture.ContentCaptureService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiContentCaptureService } U=0: not found
10-31 15:58:59.297 507 507 W RemoteContentCaptureService: could not bind to Intent { act=android.service.contentcapture.ContentCaptureService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiContentCaptureService } using flags 67112961
10-31 15:58:59.297 507 507 W ActivityManager: Unable to start service Intent { act=android.service.contentcapture.ContentCaptureService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiContentCaptureService } U=0: not found
10-31 15:58:59.297 507 507 W RemoteContentCaptureService: could not bind to Intent { act=android.service.contentcapture.ContentCaptureService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiContentCaptureService } using flags 67112961
10-31 15:58:59.309 350 350 I perfetto: ftrace_procfs.cc:176 enabled ftrace
10-31 15:58:59.313 0 0 W perfetto: enabled ftrace
10-31 15:58:59.320 24678 24678 I org.webrtc.Logging: SurfaceEglRenderer: : surfaceChanged: format: 4 size: 1074x2334
10-31 15:58:59.321 24678 24678 I org.webrtc.Logging: EglRenderer: setLayoutAspectRatio: 0.46015424
10-31 15:58:59.361 313 2067 D goldfish-address-space: claimShared: Ask to claim region [0xa6ff4000 0xa75d4000]
10-31 15:58:59.362 313 2067 D goldfish-address-space: claimShared: Ask to claim region [0xa60a0000 0xa6680000]
10-31 15:58:59.363 313 2067 D goldfish-address-space: claimShared: Ask to claim region [0xab8e0000 0xabec0000]
10-31 15:58:59.383 313 2067 D goldfish-address-space: claimShared: Ask to claim region [0xa92ac000 0xa9c3c000]
10-31 15:58:59.383 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa3ee8000 0xa3eec000]
10-31 15:58:59.387 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa3eec000 0xa3ef0000]
10-31 15:58:59.387 507 3621 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:58:59.388 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa3ef0000 0xa3ef4000]
10-31 15:58:59.394 507 531 D EventSequenceValidator: dec AccIntentStartedEvents to 1
10-31 15:58:59.401 507 548 D ArtManagerInternalImpl: /data/misc/iorapd/com.android.systemui/30/com.android.systemui.media.MediaProjectionPermissionActivity/compiled_traces/compiled_trace.pb doesn’t exist
10-31 15:58:59.402 507 548 I ActivityTaskManager: Displayed com.android.systemui/.media.MediaProjectionPermissionActivity: +119ms
10-31 15:58:59.406 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa60a0000 0xa6680000]
10-31 15:58:59.412 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xac000000 0xac5e0000]
10-31 15:58:59.432 31669 492 E SQLiteDatabase: Error inserting flex_time=1240000 job_id=-1 period=2482000 source=16 requires_charging=0 preferred_network_type=1 target_class=com.google.android.gms.measurement.PackageMeasurementTaskService user_id=0 target_package=com.google.android.gms tag=Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG task_type=0 required_idleness_state=0 service_kind=0 source_version=201817000 persistence_level=1 preferred_charging_state=1 required_network_type=0 runtime=1667224739430 retry_strategy={“maximum_backoff_seconds”:{“3600”:0},“initial_backoff_seconds”:{“30”:0},“retry_policy”:{“0”:0}} last_runtime=0
10-31 15:58:59.432 31669 492 E SQLiteDatabase: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: pending_ops.tag, pending_ops.target_class, pending_ops.target_package, pending_ops.user_id (code 2067 SQLITE_CONSTRAINT_UNIQUE)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:938)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:790)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:88)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1701)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1570)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at apla.a(:com.google.android.gms@201817019@20.18.17 (040400-311416286):78)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at apkp.a(:com.google.android.gms@201817019@20.18.17 (040400-311416286):196)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at apkp.a(:com.google.android.gms@201817019@20.18.17 (040400-311416286):20)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at apkp.a(:com.google.android.gms@201817019@20.18.17 (040400-311416286):190)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at apgy.run(:com.google.android.gms@201817019@20.18.17 (040400-311416286):8)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at sji.b(:com.google.android.gms@201817019@20.18.17 (040400-311416286):12)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at sji.run(:com.google.android.gms@201817019@20.18.17 (040400-311416286):7)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at spj.run(:com.google.android.gms@201817019@20.18.17 (040400-311416286):0)
10-31 15:58:59.432 31669 492 E SQLiteDatabase: at java.lang.Thread.run(Thread.java:923)
10-31 15:58:59.443 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa6ff4000 0xa75d4000]
10-31 15:58:59.502 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xac5e0000 0xacf70000]
10-31 15:58:59.615 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xacf70000 0xad900000]
10-31 15:59:00.002 682 682 D KeyguardClockSwitch: Updating clock: 1559
10-31 15:59:00.373 24678 24742 I flipper : flipper: Certificate exchange complete.
10-31 15:59:00.835 487 487 E wifi_forwarder: qemu_pipe_open_ns:62: Could not connect to the ‘pipe:qemud:wififorward’ service: Invalid argument
10-31 15:59:00.835 487 487 E wifi_forwarder: RemoteConnection failed to initialize: RemoteConnection failed to open pipe
10-31 15:59:01.057 24678 24969 I org.webrtc.Logging: CameraStatistics: Camera fps: 9.
10-31 15:59:01.084 24678 24976 I org.webrtc.Logging: EglRenderer: Duration: 4003 ms. Frames received: 34. Dropped: 0. Rendered: 34. Render fps: 8,5. Average render time: 3315 us. Average swapBuffer time: 2929 us.
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: Error inserting flex_time=1238000 job_id=-1 period=2478000 source=16 requires_charging=0 preferred_network_type=1 target_class=com.google.android.gms.measurement.PackageMeasurementTaskService user_id=0 target_package=com.google.android.gms tag=Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG task_type=0 required_idleness_state=0 service_kind=0 source_version=201817000 persistence_level=1 preferred_charging_state=1 required_network_type=0 runtime=1667224741353 retry_strategy={“maximum_backoff_seconds”:{“3600”:0},“initial_backoff_seconds”:{“30”:0},“retry_policy”:{“0”:0}} last_runtime=0
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: pending_ops.tag, pending_ops.target_class, pending_ops.target_package, pending_ops.user_id (code 2067 SQLITE_CONSTRAINT_UNIQUE)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:938)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:790)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:88)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1701)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1570)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at apla.a(:com.google.android.gms@201817019@20.18.17 (040400-311416286):78)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at apkp.a(:com.google.android.gms@201817019@20.18.17 (040400-311416286):196)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at apkp.a(:com.google.android.gms@201817019@20.18.17 (040400-311416286):20)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at apkp.a(:com.google.android.gms@201817019@20.18.17 (040400-311416286):190)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at apgy.run(:com.google.android.gms@201817019@20.18.17 (040400-311416286):8)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at sji.b(:com.google.android.gms@201817019@20.18.17 (040400-311416286):12)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at sji.run(:com.google.android.gms@201817019@20.18.17 (040400-311416286):7)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at spj.run(:com.google.android.gms@201817019@20.18.17 (040400-311416286):0)
10-31 15:59:01.356 31669 14437 E SQLiteDatabase: at java.lang.Thread.run(Thread.java:923)
10-31 15:59:02.354 507 968 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:02.412 24678 24742 I flipper : flipper: Certificate exchange complete.
10-31 15:59:03.057 24678 24969 I org.webrtc.Logging: CameraStatistics: Camera fps: 9.
10-31 15:59:03.064 507 968 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:03.064 507 968 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:03.064 682 1134 D OpenGLRenderer: endAllActiveAnimators on 0xb40000746e5d5290 (RippleDrawable) with handle 0xb40000738e506e10
10-31 15:59:03.072 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xaa6d0000 0xaacfc000]
10-31 15:59:03.081 507 507 W ActivityManager: Unable to start service Intent { act=android.service.contentcapture.ContentCaptureService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiContentCaptureService } U=0: not found
10-31 15:59:03.081 507 507 W RemoteContentCaptureService: could not bind to Intent { act=android.service.contentcapture.ContentCaptureService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiContentCaptureService } using flags 67112961
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_10 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_6 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_8 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_9 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.083 507 3621 W InputReader: Device virtio_input_multi_touch_4 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.084 507 3621 W InputReader: Device virtio_input_multi_touch_5 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.084 507 3621 W InputReader: Device virtio_input_multi_touch_11 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.084 507 3621 W InputReader: Device virtio_input_multi_touch_7 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.084 507 3621 W InputReader: Device virtio_input_multi_touch_2 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.084 507 3621 W InputReader: Device virtio_input_multi_touch_3 is associated with display ADISPLAY_ID_NONE.
10-31 15:59:03.085 24678 24678 E RNDocumentPicker: promise was null in onActivityResult
10-31 15:59:03.085 507 4836 D HostConnection: HostConnection::get() New Host Connection established 0xb4000073fe48b5d0, tid 4836
10-31 15:59:03.090 24678 24678 I PUSHER_WRAPPER: onResume subscribing with activity MainActivity
10-31 15:59:03.093 507 507 W ActivityManager: Unable to start service Intent { act=android.service.contentcapture.ContentCaptureService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiContentCaptureService } U=0: not found
10-31 15:59:03.093 507 507 W RemoteContentCaptureService: could not bind to Intent { act=android.service.contentcapture.ContentCaptureService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiContentCaptureService } using flags 67112961
10-31 15:59:03.093 507 4836 D HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0
10-31 15:59:03.095 507 4836 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without…
10-31 15:59:03.096 507 4836 D EGL_emulation: eglCreateContext: 0xb4000073ee5a7d80: maj 3 min 0 rcv 3
10-31 15:59:03.096 507 507 W ActivityManager: Unable to start service Intent { act=android.service.contentcapture.ContentCaptureService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiContentCaptureService } U=0: not found
10-31 15:59:03.096 507 507 W RemoteContentCaptureService: could not bind to Intent { act=android.service.contentcapture.ContentCaptureService cmp=com.google.android.as/com.google.android.apps.miphone.aiai.app.AiAiContentCaptureService } using flags 67112961
10-31 15:59:03.097 507 4836 D EGL_emulation: eglMakeCurrent: 0xb4000073ee5a7d80: ver 3 0 (tinfo 0xb40000738e4d4290) (first time)
10-31 15:59:03.192 682 697 I ndroid.systemu: NativeAlloc concurrent copying GC freed 19948(917KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 9673KB/18MB, paused 109us total 100.806ms
10-31 15:59:03.198 507 3621 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:03.221 507 1493 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:03.354 507 4791 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:04.282 350 350 I perfetto: probes_producer.cc:329 Producer stop (id=384)
10-31 15:59:04.283 350 350 I perfetto: ftrace_procfs.cc:183 disabled ftrace
10-31 15:59:04.286 0 0 W perfetto: disabled ftrace
10-31 15:59:04.285 351 351 I perfetto: ng_service_impl.cc:1948 Tracing session 384 ended, total sessions:0
10-31 15:59:04.477 24678 24742 I flipper : flipper: Certificate exchange complete.
10-31 15:59:05.058 24678 24969 I org.webrtc.Logging: CameraStatistics: Camera fps: 9.
10-31 15:59:05.086 24678 24976 I org.webrtc.Logging: EglRenderer: Duration: 4001 ms. Frames received: 34. Dropped: 0. Rendered: 34. Render fps: 8,5. Average render time: 2994 us. Average swapBuffer time: 2517 us.
10-31 15:59:05.522 507 3621 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:05.604 24678 24678 I org.webrtc.Logging: SurfaceEglRenderer: : surfaceChanged: format: 4 size: 1074x2202
10-31 15:59:05.604 24678 24678 I org.webrtc.Logging: EglRenderer: setLayoutAspectRatio: 0.48773843
10-31 15:59:05.615 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa6ff4000 0xa78fc000]
10-31 15:59:05.655 507 3621 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:05.735 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa89a4000 0xa92ac000]
10-31 15:59:05.851 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xaacfc000 0xab604000]
10-31 15:59:06.533 24678 24742 I flipper : flipper: Certificate exchange complete.
10-31 15:59:06.911 24678 24846 I JitsiMeetSDK: [modules/RTC/ScreenObtainer.js] Using getDisplayMedia for screen sharing
10-31 15:59:06.915 24678 24845 I ReactNativeJS: 'ERROR creating ScreeSharing stream ', [gum.screensharing_user_canceled: User canceled screen sharing prompt]
10-31 15:59:06.916 507 1493 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:07.005 24678 24678 I org.webrtc.Logging: SurfaceEglRenderer: : surfaceChanged: format: 4 size: 1074x2334
10-31 15:59:07.006 24678 24678 I org.webrtc.Logging: EglRenderer: setLayoutAspectRatio: 0.46015424
10-31 15:59:07.031 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xab604000 0xabf94000]
10-31 15:59:07.049 507 1493 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:07.058 24678 24969 I org.webrtc.Logging: CameraStatistics: Camera fps: 9.
10-31 15:59:07.150 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa92ac000 0xa9c3c000]
10-31 15:59:07.267 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa6ff4000 0xa7984000]
10-31 15:59:07.831 507 1493 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:07.921 24678 24678 I org.webrtc.Logging: SurfaceEglRenderer: : surfaceChanged: format: 4 size: 1074x2202
10-31 15:59:07.922 24678 24678 I org.webrtc.Logging: EglRenderer: setLayoutAspectRatio: 0.48773843
10-31 15:59:07.956 507 1493 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:07.969 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa89a4000 0xa92ac000]
10-31 15:59:08.089 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xaacfc000 0xab604000]
10-31 15:59:08.142 1364 1395 I PeriodicStatsRunner: PeriodicStatsRunner.call():180 call()
10-31 15:59:08.142 1364 1395 I PeriodicStatsRunner: PeriodicStatsRunner.call():184 No submit PeriodicStats since input started.
10-31 15:59:08.206 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa6ff4000 0xa78fc000]
10-31 15:59:08.598 24678 24742 I flipper : flipper: Certificate exchange complete.
10-31 15:59:08.710 24678 24846 I JitsiMeetSDK: [modules/RTC/ScreenObtainer.js] Using getDisplayMedia for screen sharing
10-31 15:59:08.711 24678 24845 I ReactNativeJS: 'ERROR creating ScreeSharing stream ', [gum.screensharing_user_canceled: User canceled screen sharing prompt]
10-31 15:59:08.711 507 1493 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:08.804 24678 24678 I org.webrtc.Logging: SurfaceEglRenderer: : surfaceChanged: format: 4 size: 1074x2334
10-31 15:59:08.805 24678 24678 I org.webrtc.Logging: EglRenderer: setLayoutAspectRatio: 0.46015424
10-31 15:59:08.842 507 968 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:08.909 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xab604000 0xabf94000]
10-31 15:59:09.031 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa92ac000 0xa9c3c000]
10-31 15:59:09.059 24678 24969 I org.webrtc.Logging: CameraStatistics: Camera fps: 9.
10-31 15:59:09.088 24678 24976 I org.webrtc.Logging: EglRenderer: Duration: 4001 ms. Frames received: 34. Dropped: 0. Rendered: 34. Render fps: 8,5. Average render time: 3628 us. Average swapBuffer time: 3171 us.
10-31 15:59:09.148 313 7436 D goldfish-address-space: claimShared: Ask to claim region [0xa6ff4000 0xa7984000]
10-31 15:59:10.697 24678 24742 I flipper : flipper: Certificate exchange complete.
10-31 15:59:11.059 24678 24969 I org.webrtc.Logging: CameraStatistics: Camera fps: 9.
10-31 15:59:11.808 507 1493 I system_server: oneway function results will be dropped but finished with status OK and parcel size 4
10-31 15:59:12.761 24678 24742 I flipper : flipper: Certificate exchange complete.
10-31 15:59:12.892 347 347 W adbd : timeout expired while flushing socket, closing
10-31 15:59:13.060 24678 24969 I org.webrtc.Logging: CameraStatistics: Camera fps: 9.
10-31 15:59:13.088 24678 24976 I org.webrtc.Logging: EglRenderer: Duration: 4000 ms. Frames received: 34. Dropped: 0. Rendered: 34. Render fps: 8,5. Average render time: 2933 us. Average swapBuffer time: 2526 us.

Hum, this suggests creating the stream failed. It’s hard to tell why with an old SDK, and wrapped in RN, somethign we don’t really support.

As for iOS, you need to have a broadcast extension, did you add that?

For iOS - I haven’t looked at it yet but I just tried to build the custom build jitsi app on its own and the button there is visible but nothing happens when I tap it. So the button is probably missing because of missing broadcast extension but the feature is still not working.
When I built the same custom jitsi sdk’s android app, the screen sharing works only sometimes. For instance, it seems to work only if I join an empty room with the android app, start sharing and then join with another user in the room. If I start sharing while other user is in the room it doesn’t work. Though in the Jitsi app every time I start screen sharing, the button changes state and shows ‘Stop screen sharing…’ but in my app, the button doesn’t even change state and screen sharing never works

Any hints on how to debug it?

You need to create your own app group and change it, please see the guide here: iOS SDK | Jitsi Meet

Are you connecting against meet.jit.si ?

We just released SDK 6.2, which contains many important fixes in this area.

I’ll take a look at iOS but I’m first trying to focus on fixing Android first.
I’m connecting to a private server.

I’m trying to debug the issue now though it’s quite time consuming considering I have to make changes to jitsi meed and lib jitsi meet, then build jitsi custom sdk, then build my app with jitsi’s custom sdk.

So far I found that in Jitsi’s app (when it connects to meet.jitsi.si and screen sharing sometimes works) in lib-jitsi-meet/dist/esm/modules/RTC/ScreenObtainer.js obtainScreenFromGetDisplayMediaRN, navigator.mediaDevices.getDisplayMedia is resolved with the stream in .then but in my app that uses the same jitsi custom build, on first try to share screen when the permission dialog shows, navigator.mediaDevices.getDisplayMedia is not resolved in .then nor in the .catch. Then on second try when the permission dialog is not shown, it goes in the catch where I logged this error:
{ name: ‘Error’,
message: ‘Another operation is pending.’,
constraintName: undefined }

Possibly the issue lies in
UiThreadUtil.runOnUiThread(new Runnable() {
@Override
public void run() {
currentActivity.startActivityForResult(
mediaProjectionManager.createScreenCaptureIntent(), PERMISSION_REQUEST_CODE);
}
});
inside /node_modules/react-native-webrtc/android/src/main/java/com/oney/WebRTCModule/GetUserMediaImpl.java getDisplayMedia()

I’m trying to debug it further

Down the line, this is then masked by the User canceled screen sharing prompt error.

Any clue what the actual issue might be and how to fix it?

It seems like in reactContext.addActivityEventListener with public void onActivityResult never gets called in node_modules/react-native-webrtc/android/src/main/java/com/oney/WebRTCModule/GetUserMediaImpl.java

I found that I had android:launchMode=“singleTask” in my RN app’s AndroidManifest but removing it didn’t fix the issue. It seems like many people have this issue, looking at react-native-jitsi-meet github issues. Still trying to debug it

I haven’t been able to reproduce this with our app. A key difference is that we are not using a RN wrapper. Unfortunately all the RN wrappers wrap our native SDK which also uses RN and may create very weird issues.

We are working on a proper RN SDK which we hope to release before the end of the year.

It’s been incredibly difficult to debug this but I think I found a way to make it work - by adding onActivityResult in my app’s MainActivity, then calling a newly created method in the RN jitsi meet which calls JitsiMeetActivityDelegate.onActivityResult. I also have to start the JitsiMeetOngoingConferenceService myself before the onActivityResult is triggered.

I’ll proceed with trying to get the iOS screen sharing to work

Thank you

1 Like

@saghul I followed the iOS guide for screen sharing integration - now when I tap on Start Screen Share button, I get the broadcasting menu with 2 options - Photos and Jitsi Meet Broadcast Extension. When I click on Jitsi Meet Broadcast Extension - screen recording seems to starts but the other people in the meeting don’t see anything. Then when I click Stop recording, the Broadcast menu seems to stop it but Jitsi’s button doesn’t change state, it stays as ‘Stop Screen Sharing’.

Do you have any idea what the issue might be?

Thank you!

What do you see in the logs? There have been some unfortunate backwards incompatibilities lately that are solved in SDK 6.2, but you were running an older version, right?

@saghul I’m using 5.1.0, yes.

Seems like the issue is the deployment target of the broadcast extension which by default was higher than the testing device’s. The deployment target was 15.2 but my device was on iOS 14.4 so the extension didn’t work at all.

I’ll try to build now with a proper deployment target and confirm if it works. If it does, I’ll share this topic to the github issues in react-native-jitsi-meet library so other people can read my struggles and have a smoother experience.

Thank you for all your work!

Awesome, thank you!

1 Like