     @_setAnswer(event)
 
   _onCandidate: (event) ->
-    candidate = new RTCIceCandidate(
+    candidate = new @_RTCIceCandidate(
       sdpMLineIndex: event.sdpMLineIndex
       sdpMid: event.sdpMid
       candidate: event.candidate

  _mediaConstraints: 'mandatory':
    'OfferToReceiveAudio': true
    'OfferToReceiveVideo': true

  _webSocketInitialize: (url, userToken) ->
    @_userToken = userToken

      @remoteOutput.src = ''

    try
      peer = new @_RTCPeerConnection(pcConfig)
    catch e
      console.log('Failed to create peerConnection, exception: ' + e.message)

