     console.log('config',config)
     if (config.sendOffer)
       console.log("Creating RTC offer to " + peer_id)
+      offerConstraints = {
+        "optional": [
+          { "OfferToReceiveAudio": true },
+          { "OfferToReceiveVideo": true },
+        ]
+      }
+      constraints = @mergeConstraints(offerConstraints, sdpConstraints)
+
       peer_connection.createOffer((local_description) =>
         console.log("Local offer description is: " + local_description)
         peer_connection.setLocalDescription(local_description

          , (error) ->
            console.log("Error creating answer: ", error)
            console.log(peer)
          )
      ,(error) ->
        console.log("setRemoteDescription error: ", error)
      )

  webrtcDetectedBrowser = null
  #</WebRTC Adapter>
  debug = false
  sdpConstraints = {
    'mandatory': {
      'OfferToReceiveAudio': true,
      'OfferToReceiveVideo': true
    },
    'optional': [{
      'VoiceActivityDetection': false
    }]
  }

  constructor: (worker) ->
    @worker = worker
