These are chat archives for andyet/SimpleWebRTC

11th
Jan 2018
Joan Mira
@gazpachu
Jan 11 2018 09:09
Good morning @fippo, I have the screen sharing extension working (I can see the screen video on the initiator window). The issue I have is that the others can only see the screen video if they reload their apps. If not, they still see the webcam video. How can I force the broadcast of the screen video to the other peers?
Joan Mira
@gazpachu
Jan 11 2018 12:14
I've also noticed that clicking on the stop sharing blue button from the bottom bar that chrome creates when starting sharing the screen, doesn't trigger the localScreenRemoved event. This is a problem because some users might prefer to use that button to close the screen sharing. Any fix?
Joan Mira
@gazpachu
Jan 11 2018 13:51
in this stackoverflow question there's a way to listen to that button, but I'm not sure how to apply that to the simpleWebRTC local screen share stream. https://stackoverflow.com/questions/25141080/how-to-listen-for-stop-sharing-click-in-chrome-desktopcapture-api
Joan Mira
@gazpachu
Jan 11 2018 14:03
it seems the docs are wrong, the method is localScreenStopped not localScreenRemoved
so, that fixes the event issue but I still couldn't figure out how to broadcast the screen video to the other peers
Joan Mira
@gazpachu
Jan 11 2018 14:46
BTW, is there a way to test the screen share functionality in localhost? I wasn't able to add localhost in webmaster tools. It doesn't accept it, therefore I can't whitelist the domain in the chrome extension
Joan Mira
@gazpachu
Jan 11 2018 15:46
ok, found the issue. The video was not rendering because it was using the same key ID in the react map. I still have the question about how to make the chrome extension work with localhost. The rest of questions are all solved :)