webRTC nodejs not working after deployment in vercel - javascript

I have developed and deployed nodejs webrtc still not working
after deployment
Design not working
Live video communication is also not working
this is the live link click here
this is git repo link click here

The demo signaling server for that (long since deprecated) package is no longer running at that address anymore. Run your own.

Your socket isn't connecting. You need to setup your cors with the name of the frontend website.

Related

Strapi deployment

I am new to Strapi and I found it really good, I got my website in development mode locally working perfectly fine but I can not get my head around or find any good guide how to host Strapi on Debian Linux server, that I have, to be part of website and to access Strapi control panel for example mywebiste.com/admin so I can add content as blog posts directly by logging in to website admin part. Is that possible or I must use some services like Heroku. if someone can provide in short step by step what to do I will really appreciate that. I tried already create new Strapi project inside public_html folder but its not working
I use strapi on my project . I hosted strapi on pm2 package. Its very easy.
this documention https://docs.strapi.io/developer-docs/latest/guides/process-manager.html#install-pm2
don't forget add startup Ubuntu to pm2. Otherwise when Ubuntu started then not starting pm2
I suggest use Ubuntu.
Nginx Configuration
In order to deploy it to a Linux server, you need to install nginx, and set it up. You can find instructions in official documentation: https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/deployment/optional-software/nginx-proxy.html#nginx-virtual-host

Making a video-chat app in js without nodejs

I have a server (cPanel) in GoDaddy. And I want to create a video chat app without NodeJS.
Tutorials on the web use NodeJS. Can't I just run it on GoDaddy cPanel Linux hosting servers?
Please help.
Try to use some open-source projects.
https://jitsi.org/projects/
Step by step set up : https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-start
Just set up the jitsi Videobridge and jitsi-meet in 30 min and you are ready to go.
Make sure to open the required port of the firewall.

How to serve a REST API on Heroku

I've built a REST API that works well if I host it locally. I followed this tutorial:
http://coenraets.org/blog/2012/10/creating-a-rest-api-using-node-js-express-and-mongodb/
How can I serve this on heroku or any other online platform so my app can execute CURL commands?
Here is the code I used:
https://github.com/taboada92/wham
Thanks
You need to add a Procfile to your project so heroku will know what to execute. If are new to Heroku + Node, I suggest going through the tutorial

How can i start WebRTC sample application?

I've read a lot of documents about webRTC. Now I want to implement a sample application. I went through this useful stack overflow question.
And I got some client, a server in Javascript. I don't know how to start to see this demo . What are the steps should I take?
They explained like :
signaling technology: WebSockets
client: pure html/javascript
server: node.js, ws
last tested on: Firefox 40.0.2, Chrome 44.0.2403.157 m, Opera 31.0.1889.174
I understand this but I don't have much practical knowledge on this. These are my questions to setup this demo ?
Should I have a hosting account ? or can I use this with my
localhost ?
Next , where should I done this node.js, ws ? can I use with linux
machine and install npm and run the server.js file on that ?
How can I start client.js code on my Linux machine ?
Only server.js and client.js file is required to setup this
application ?
I am new with WebRTC too, but i hope my answer can satisfy you
You can use that demo in localhost
You can install nodejs in linux machine and run server.js on that.
To run the demo
run server.js through nodejs. Make sure you installed ws package first.
then you create a directory name static and put client-side code in there.
open your browser and go to localhost:80 to see the demo.
Yes, you just need 2 files to setup that application. The client file in Working Hello World WebRTC DataChannel Examples with Signaling Implemented is a html file not javascript.
You can see another tutorial in here: http://www.tutorialspoint.com/webrtc/webrtc_environment.htm
Sorry for my bad English.

Kurento Media Server HelloWorld Javascript example webSocket error

Merry Christmas!
I am trying to configure KMS on my Ubuntu 14.04 (64 bit). I could install the KMS server successfully following the guide at https://www.kurento.org/docs/6.0.0/installation_guide.html.
Also, downloaded the Javascript HelloWorld tutorial from https://www.kurento.org/docs/6.0.0/tutorials/js/tutorial-1-helloworld.html. I could run the example successfully on localhost on Google Chrome Version 47.0.2526.106 (64-bit) on the same Ubuntu System.
But, I could not see the local video nor the loop backed video. Only a spinner icon is shown on both the Video placeholders. Consulting the Console log reveals a problem after creating the SDP offer. The error is as described below.
kurento-client.js:21072 WebSocket connection to 'wss://127.0.0.1:8433/kurento' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
I am no expert on web sockets and stuff. Any help on this would really help me to proceed forward.
Note: I am running the example on HTTP, not on HTTPS. I guess that would not be the cause of the problem, though.
Regards,
LazyCoder7
I managed to solve it. I was wrong on my guess though, HTTPS was indeed required in order to make the WebSocket connection ( i was not aware of that part ). Created a certificate file (.pem) (from crt and key file already in the helloworld folder) and configured the KMS server to use the certificate. After this I was able to see myself and the same me in loopback :)
You are following an old version of the documentation. Since Chrome 47, in is mandatory to server pages through HTTPS if you want to use the getUserMedia APi. So we updated all our tutorials, and they now have a self-signed certificate. In case of the JS tutorials, you also need to configure KMS to expose a secure WS signalling connection, as the browser directly connects to the media server to control it.
Please follow the latest version of the documentation here
Be sure that the KMS is running on the port 8433 (not 8888), if you are using docker
docker run -d --name kms -p 8433:8433 kurento/kurento-media-server:trusty-latest

Categories