feross / simple-peer

📡 Simple WebRTC video, voice, and data channels
MIT License
7.36k stars 972 forks source link

Support omission of DataChannels #360

Open schirrmie opened 5 years ago

schirrmie commented 5 years ago

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!

feross commented 5 years ago

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/

cedrouck commented 3 years ago

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.