Giter Club home page Giter Club logo

Comments (7)

dimircea avatar dimircea commented on May 18, 2024

You have to use HTTPS protocol, very likely you are using HTTP or you have missed something in the process of going from HTTP to HTTPS, and thus you get that message.
Almost every web browsers that supports WebRTC allows it to run ONLY via HTTPS for security and privacy reasons. This change happened a few months back, and is nothing we can do to allow HTTP. Check in both sides, the client code and server code that you deal with HTTPS and not HTTP.

Check my article here :Building a Video/Audio Chat Web App with WebRTC for some more details.

from webrtc.

nasr18 avatar nasr18 commented on May 18, 2024

how do i initiate the app??? there is no package.json. but i did executing npm install ws and then node server and after hitting https://localhost:3434 it keep on loading. am i doing correctly??

from webrtc.

dimircea avatar dimircea commented on May 18, 2024
  1. Yes, ws is what you need.

  2. Check your JS console (CTRL+ SHIFT + J) and also look on the browser development tools in the network console, to see what happens really.

  3. In the client application, be sure that you are using wss protocol for web sockets.

  4. your HTML file must be behind a web server (e.g., Apache), otherwise will not work. The WebRTC API and file:// protocol are not friends.

from webrtc.

nasr18 avatar nasr18 commented on May 18, 2024

you there??? pls be online. i will check it out now.

from webrtc.

ntlzz93 avatar ntlzz93 commented on May 18, 2024

the same problem with me.
Please provide the solution fix it soon!

from webrtc.

dimircea avatar dimircea commented on May 18, 2024

The app works just fine. You have for sure a configuration issue on your server side. I will try to provide some guidelines on how to have this app up and running on a standard server configuration.

from webrtc.

dimircea avatar dimircea commented on May 18, 2024

The source code was now improved, and it includes HTTPS management on the backend NodeJS app. It also include free SSL certificate (self signed). The dependency modules are now available via package.json so just execute "npm install". The associated documentation (see http://web-engineering.info/node/57) was updated to reflect the changes.
The current code was tested with Firefox and Chrome and works without problems. Notice that sometimes you may want to restart the web browser if it looks like you can't get an audio/video connection.

from webrtc.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.