Is There Any Way To Share The Screen On The MAC Catalyst App

I am new in the MAC Catalyst development. I have one application that is developed by using electronjs.

This app is having the functionality of SIP/VoIP. Audio/Video calling works well. But I want to implement the screen sharing functionality. I have tried to implement it but I was not able to do it.

I have tried the below stuff:

  1. navigator.mediaDevices.getUserMedia(options) : It was giving error "Uncaught (in promise) DOMException: Not supported".
  2. desktopCapturer.getSources : Not able to get streams. I have written the logic to get streams in the preload.js file. I am not able to get streams and suppose in case, I have got the streams, How can I load that on the video element that is not rendered yet? Because the preload file is executed before the loading of the window. So It's giving the error 'Cant read property 'srcObject' of undefined''.
  3. ipcRenderer & ipcMain : Giving the same result as above.
  4. AVFoundation : Only working for the mobile apps.

So my question is, Is there any way to share the screen in the MAC Catalyst apps by using electronjs or by using any other way? If so, Please refer.

Post not yet marked as solved Up vote post of win23 Down vote post of win23
657 views