Screen Sharing (Audio) - Electron

mskim

New Member
I'm trying to develop screen sharing in 'Electron' with 'Flashphoner Web SDK'. And I play in the browser with the sample you provided.
However, I found a problem where 'Play' does not work.

So, I checked the source provided and found the problem in the location below. (flashphoner.js)

function resolveCallback () {
if (requestAudioConstraints && browserDetails.browser == "chrome") {
console.table (requestAudioConstraints);
logger.info (LOG_PREFIX, "Request for audio stream");
navigator.getUserMedia ({
audio: requestAudioConstraints​
}, function (stream) {​
....
...​
}​
If I change browserDetails.browser == "chrome" to window.chrome on the source, both 'Electron' and the browser work fine.

Is this correct?
 
Last edited:

Max

Administrator
Staff member
Good day.
We raised internal ticket (WCS-2297) to investigate it. If this change does not break another cases, we apply this change to WebSDK.
If it works for you, you can use modified flashphoner.js in your project.
 
Top