simplewebrtc / SimpleWebRTC

Simplest WebRTC ever
Other
4.65k stars 1.19k forks source link

I run it on server. whenever i have used npm run test-page #594

Open kul1010 opened 7 years ago

kul1010 commented 7 years ago

Hi, I am unable to run it on my server using below url https://192.168.100.204:8443/test/ i am using this url on browser

aaaaa

xdumaine commented 7 years ago

@kul1010 It's only listening on localhost, not necessarily on that IP. A PR just merged to listed on all network interfaces, so could you try again?

kul1010 commented 7 years ago

then tell me the branch name. So i can pull from that branch.

xdumaine commented 7 years ago

@kul I said it merged. It's in master.

kul1010 commented 7 years ago

Also tell me, can i use my wss server for signalling rather than sandbox. like url: 'wss://chat.asergis.org:7443/',

or url: 'https://chat.asergis.org:7443/',

xdumaine commented 7 years ago

Yes you will need to so that. Use https.

On Wed, Jul 5, 2017, 9:23 AM kul1010 notifications@github.com wrote:

Also tell me, can i use my wss server for signalling rather than sandbox. like url: 'wss://chat.asergis.org:7443/',

or url: 'htpps://chat.asergis.org:7443/',

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andyet/SimpleWebRTC/issues/594#issuecomment-313101358, or mute the thread https://github.com/notifications/unsubscribe-auth/AAy5d2sYMXNbeAExdAS6rZgSWwbk9SRxks5sK443gaJpZM4OKX0G .

kul1010 commented 7 years ago

but not worked for link creation. so no url created like https://localhost:8443/test/?dfgdf Also not worked for screen sharing. I have changed in out/simplewebrtc-with-adapter.bundle.js file Whenever wss://chat.asergis.org:7443 is opened. see here https://www.websocket.org/echo.html aaaaa

xdumaine commented 7 years ago

Are you running signalmaster?

kul1010 commented 7 years ago

I have run only this $ npm run test-page. And this wss://chat.asergis.org:7443 is running for freeswitch. u can check old project with any name. but very slow and used sipml5. https://chat.asergis.org But i want to use signalmaster for proper use of your project.

xdumaine commented 7 years ago

You need to have an instance of signalmaster running as the websocket server, not just a generic web socket server. Please read through the documentation of both projects before continuing.

kul1010 commented 7 years ago

ok sure. Thanks a lot!!!!!! How to rebuild bundle for out/simplewebrtc-with-adapter.bundle.js or where to write http://localhost:8888 as url for signalling. I am asking because i have not read your code fully or step by step.

fippo commented 7 years ago

How about you read the documentation? https://simplewebrtc.com/notsosimple.html#sandbox-server -- it is the first item on that page even

kul1010 commented 7 years ago

I have changed in out\simplewebrtc.bundle.js and given socket url as in config url: 'https://chat.asergis.org:3000/',

and run command as $ npm run build $ npm run test-page

but not creating link to share url. image

kul1010 commented 7 years ago

What you have used at https://sandbox.simplewebrtc.com:443/ So create it Button is working means link creation functionality is working. And i have given url in index.html as and taking this url when i create build again. var webrtc = new SimpleWebRTC({ // the id/element dom element that will hold "our" video localVideoEl: 'localVideo', // the id/element dom element that will hold remote videos remoteVideosEl: '', // immediately ask for camera access autoRequestMedia: true, debug: false, detectSpeakingEvents: true, // url: 'https://chat.asergis.org:3000' url: 'https://sandbox.simplewebrtc.com:443/' });

and after it used $ npm run build $ npm run test-page

kul1010 commented 7 years ago

Why localhost signalling server not working. image

xdumaine commented 7 years ago

Is your signaling server running at that address?

kul1010 commented 7 years ago

Yes. i run it after cloning from https://github.com/andyet/signalmaster.git and install its dependencies using $ npm i