stephenlb / webrtc-sdk

WebRTC Simple Calling API + Mobile SDK - A simplified approach to RTCPeerConnection for mobile and web video calling apps.
https://stephenlb.github.io/webrtc-sdk/
MIT License
853 stars 278 forks source link

It doesn't work. #51

Closed Feuerhamster closed 6 years ago

Feuerhamster commented 6 years ago

Hello,

Ive seen this easy Web-RTC application on this site: https://www.pubnub.com/blog/2014-10-21-building-a-webrtc-video-and-voice-chat-application/

But this demo site doesn't work. When i put the call link into another browser, it do nothing. What can i do?

ghost commented 6 years ago
var phone = PHONE({
    number        : '1234567890',
    publish_key   : 'pub-c-561a7378-fa06-4c50-a331-5c0056d0163c', <-- Chnage
    subscribe_key : 'sub-c-17b7db8a-3915-11e4-9868-02ee2ddab7fe', <-- Change
    media         : { audio : true, video : true },
    ssl           : true
})

One of the simple changes you might have over looked is to change your Pub / Sub Keys.

Also, where are you attempting to run this project? Are you using the simple python server in the repo? You can try making this project your GitHub pages, https://pages.github.com to have the project live and it's easier to share with friends.

Feuerhamster commented 6 years ago

I've run the project on a local Xampp Server. But on the demo page it doesn't work too.

ghost commented 6 years ago

That link you shared is not a https / ssl page. Try this instance. https://www.pubnub.com/developers/demos/webrtc/

stephenlb commented 6 years ago

It must be HTTPS:

https://stephenlb.github.io/webrtc-sdk/?number=71