simple-peer icon indicating copy to clipboard operation
simple-peer copied to clipboard

Support omission of DataChannels

Open schirrmie opened this issue 5 years ago • 2 comments

Hi, i try to get Audio/Video call between Chrome/Firefox/Safari and Edge. In Edge I get the following error:

SCRIPT438: Object doesn't support property or method 'createDataChannel'

I try it with the following code snippet:

     var peer_options = {
      initiator: initiator,
      config: {
        iceTransportPolicy: 'all',
        //rtcpMuxPolicy: 'negotiate',
        iceServers: [
          { urls: 'turn:xyz.bar:3478', username: 'user', credential: 'pass'},
        ]
      },
    };
    if( this.videoSupport ) {
      peer_options.stream = this.localStream;
    }

    this.RTCPeer = new SimplePeer( peer_options );

I don't need DataChannel. How to disable DataChannel in simplepeer so I can made a audio/video call between Edge and other browser?

Thank You!

schirrmie avatar Sep 20 '18 18:09 schirrmie

The next version of Edge will be based on Chromium, so this issue will solve itself very soon. https://www.microsoftedgeinsider.com/en-us/download/

feross avatar Jul 30 '19 17:07 feross

This issue is similar to https://github.com/feross/simple-peer/issues/792 Same need, but for different reason. I have a SIP server that also does not support datachannel and throw errors.

cedrouck avatar Apr 20 '21 14:04 cedrouck