2017-04-15 26 views
0

我想讓verto在Chrome 57.0.2987.133(64位)中工作。我怎樣才能解決「無法讀取屬性'srcObject'的未定義」在Freeswitch Verto

以下https://dopensource.com/2017/01/21/setting-up-freeswitch-webrtc-functionality/後,我能夠得到Webrtc/verto在服務器上工作。我能夠獲得演示應用程序(在verto回購)來連接和撥打電話。

我跟着http://evoluxbr.github.io/verto-docs/tut/making-a-call.html設置verto我的結束,但我得到(遺漏的類型錯誤:無法讀取不確定的,遺漏的類型錯誤的特性「srcObject」:無法讀取的不確定財產「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

協助將不勝感激

回答

1

所以,我終於明白了這一點。自從http://evoluxbr.github.io/verto-docs/被放置以來,verto代碼庫已經改變。

我已經克隆了最新的(48小時)FS回購得到verto js庫。我不得不做這些額外的事情;

  1. 包括供應商/適配器latest.js在您的index.html的verto庫(或任何它被稱爲)
  2. 在新verto的配置,在您添加索引tag: "<whatever>",
  3. 插入<video id="<whatever>"></video>之前html的。您可以添加display: none;來隱藏視頻 - 如果您只需要音頻。

解決了這個問題。

相關問題