Peer Connection from electron app to webbrowser

198 views
Skip to first unread message

Simon Jensen

unread,
Apr 12, 2019, 5:08:20 PM4/12/19
to PeerJS

This is my first ever post on a page like this - so my apologies if the question in dumb or not sufficiently clarified (Im new to the world of coding).

I'm trying to connect the stream from an electron app to the webBrowser (say ...www.example.com).
Currently with my setup, when a user go to www.example.com they get a peer id. Additionally, when a user opens my electron App that person gets a peer id too. 

However, if I try to have them call each other - I get the error: Error: Could not connect to peer: xxxxxxxx.

My webpage is running a https server. I don't think my Electron app is. Could that be the problem? Is there a way to emit the stream from an electron App to 
display on a webpage?      
 
All help is greatly appreciated
Simon

Simon Jensen

unread,
Apr 12, 2019, 5:16:36 PM4/12/19
to PeerJS
I forgot to mention I created my own SSL peerServer that I use to create the peerconnection. This works from the webpage.
But if I try to connect to this server from the electron app I get : Failed to load resource: net::ERR_EMPTY_RESPONSE
 
Reply all
Reply to author
Forward
0 new messages