Skip to content Skip to sidebar Skip to footer

Unable To Obtain Desktop Picker Dialog @electron

I am unable to get desktop picker dialog for available sources. I am newbie can someone guide me what am I missing? In chrome we use 'chrome.desktopCapture.chooseDesktopMedia'? I o

Solution 1:

I haven't used electron, but in WebRTC you need to use something like this video: {optional: [{sourceId: source.id}]}. And don't do this for all the sources - do this only to get a stream from that source.

To get the available sources use navigator.mediaDevices.enumerateDevices() and then filter them by kind which can be audioinput, audiooutput, videoinput and videooutput.

Post a Comment for "Unable To Obtain Desktop Picker Dialog @electron"