Hi Pablo,
Yes, I’m aware that there’s no need for a screen sharing extension. The problem is that no audio is shared using the default screensharing functionality of Openvidu, and this is a requirement I have. So from reading all about how others had achieved it, a custom extension appeared to the be way it was done.
It is possible to capture the audio of the PC in open vidu? - Pablo, you contributed to this thread
https://github.com/OpenVidu/openvidu/issues/389 - Pablo, you’re also contributing here!
There’s plenty of posts with bits of useful information on how to share the computers sound (not mic) through the screenshare method, but no complete example code.
So I’m aware that I need to develop the extension myself, which I’ve done, but the method for getting Openvidu to use the extension:
OV.setAdvancedConfiguration( { screenShareChromeExtension: "https://chrome.google.com/webstore/detail/NO_MATTER/oepfjjienbhamdaojclkddcknibnikmi" } );
seems to have no effect.
I was hoping someone would be able to tell me what I’ve done wrong. Others seem to have got this working, but as I said, there’s no complete code examples anywhere. It does seem to be a common request though. Be great if there was a clear method for achieving it.
nb. I currently have screen sharing working on my app. It uses a separate token (but same sessionid) so that the person sharing their screen can also publish from their cam and mic. It works. Other users can see the screen. But ultimately what I want to implement is the sharer sharing their computer audio separately from their mic. I don’t have computer audio because my openvidu script isn’t using the extension I created, which is supposed have a checkbox for sharing audio.
How to share screen with audio option enabled? - The same use case I have, but with no clear example code
https://github.com/OpenVidu/openvidu/issues/194 - this extension, which I’ve made
Once I have the checkbox, I may have more work to do for the method to use the audioStream, but one step at a time (unless you know of a full example I can look at)