Reputation: 323
I'm trying to create game with WebRTC (Peer.js). And I can't make video calls through "http"... Maybe It works only through https? P.S. All working (that I saw) examples for media calls use https!
1) http://cdn.peerjs.com/demo/videochat/ (doesn't work)
2) https://simplewebrtc.com/demo.html (works)
Upvotes: 3
Views: 9471
Reputation: 9818
It's not webrtc but the getusermedia API is supported only over secure origins (https://www.chromium.org/Home/chromium-security/deprecating-powerful-features-on-insecure-origins).
So you can use localhost for testing on your machine but for deployment, you will need https.
Upvotes: 9