stephenlb / webrtc-sdk

WebRTC Simple Calling API + Mobile SDK - A simplified approach to RTCPeerConnection for mobile and web video calling apps.

Home Page:https://stephenlb.github.io/webrtc-sdk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mac - Safari. TypeError: talk.pc.addStream is not a function.

crookedbard opened this issue · comments

On iOS Safari everything works fine, but on Mac Safari I get this error:
TypeError: talk.pc.addStream is not a function. (In 'talk.pc.addStream(mystream)', 'talk.pc.addStream' is undefined) (anonymous function) — webrtc.js:196 get_conversation — webrtc.js:204 dial — webrtc.js:251 dial — webrtc-sdk:200 (anonymous function) — webrtc-sdk:220 onready — webrtc.js:401 connect — webrtc.js:392 (anonymous function) — pubnub.js:1129 (anonymous function) — pubnub.js:568 each — pubnub.js:297 each_channel — pubnub.js:562 success — pubnub.js:1126 finished — pubnub.js:2996 Selected Element <div id="pubnub-chat-output">…</div>

Tested Safari. Seems to work! What version are you using?

screen shot 2018-10-09 at 11 19 30 am

navigator.getUserMedia got deprecated, you need to use navigator.mediaDevices.getUserMedia and there may be some RTCPeerConnection changes

ahhh! okay this makes sense haha ;-)

patched and pushed. 5935d88