我正在尝试在 Chrome 57.0.2987.133(64 位)中使用 verto。
在关注https://dopensource.com/2017/01/21/setting-up-freeswitch-webrtc-functionality/之后,我能够让 webrtc/verto 在服务器上工作。我能够获得演示应用程序(在 verto repo 中)来连接和拨打电话。
我按照http://evoluxbr.github.io/verto-docs/tut/making-a-call.html设置了 Verto,但我得到了(Uncaught TypeError: Cannot read property 'srcObject' of undefined and Uncaught TypeError :无法在 chrome 控制台中读取未定义的属性“sinkId”)。见下文:
Uncaught TypeError: Cannot read property 'srcObject' of undefined
at FSRTCattachMediaStream (jquery.FSRTC.js:236)
at onRemoteStream (jquery.FSRTC.js:255)
at Object.self.peer.FSRTCPeerConnection.onRemoteStream (jquery.FSRTC.js:593)
at RTCPeerConnection.FSRTCPeerConnection.peer.onaddstream (jquery.FSRTC.js:737)
Uncaught TypeError: Cannot read property 'sinkId' of undefined
at $.verto.dialog.setAudioPlaybackDevice (jquery.verto.js:2144)
at jquery.verto.js:2214
https://pastebin.com/j4GrER0Q。我的脚本导入看起来像https://pastebin.com/H55piU1r。
协助将不胜感激