how to solve RTCIceServer.url is deprecated! Use urls instead ?

前端 未结 1 466
悲&欢浪女
悲&欢浪女 2020-12-18 07:45

i installed nodejs with soket.io. want to test this code to the server node server.js

相关标签:
1条回答
  • 2020-12-18 08:29

    (I'm answering you subject, since the rest of your question seemed unrelated).

    The Firefox web console warning "RTCIceServer.url is deprecated! Use urls instead" refers to your RTCPeerConnection configuration.

    Locate code similar to this:

    var pc = new RTCPeerConnection({ iceServers: [{ url: 'stun:foo.com:1234' }] });
    

    and rename it to:

    var pc = new RTCPeerConnection({ iceServers: [{ urls: 'stun:foo.com:1234' }] });
                                                       ^
    

    The name changed, because each ice server may in fact have multiple ways (URLs) in which it can be located, depending on network topology.

    0 讨论(0)
提交回复
热议问题