2017-04-15 3 views
0

Chrome에서 57.0.2987.133 (64 비트)에서 verto가 작동하도록하려고합니다.Freeswitch Verto에서 "정의되지 않은 srcObject '속성을 읽을 수 없습니다.

https://dopensource.com/2017/01/21/setting-up-freeswitch-webrtc-functionality/을 수행 한 후, 나는 webrtc/verto를 서버에서 작동시킬 수있었습니다. 연결하고 전화를 걸 수있는 데모 애플리케이션을 얻을 수있었습니다 (verto repo에서).

는 내 말에 설정 verto에 http://evoluxbr.github.io/verto-docs/tut/making-a-call.html을 따라,하지만 난 ( catch되지 않은 형식 오류를 : 정의되지 않은 및 catch되지 않은 형식 오류의 특성 '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 코드베이스가 변경되었습니다.

나는 verto js 라이브러리를 얻기 위해 최신 (48 시간 이전) FS 레포를 복제했습니다.

나는이 추가 작업을해야했다.

  1. 는 (그것이라고이든) 당신의 index.html을에서 verto libs와 새로운 verto의 설정에서
  2. 는 색인에 tag: "<whatever>",
  3. 삽입 <video id="<whatever>"></video>를 추가하기 바로 전에 공급 업체/어댑터 latest.js 포함 .html. display: none;을 추가하여 비디오를 숨길 수 있습니다. 필요한 경우 오디오 만 있으면됩니다.

해결했습니다.

관련 문제