📜  如果不在 wifi 上,Peerjs WebRTC 视频屏幕会变黑 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:47.330000             🧑  作者: Mango

代码示例1
const myPeer = new Peer(undefined, {
    config: {
      iceServers: [
        {urls: 'stun:stun.l.google.com:19302'},
        {
          url: 'turn:numb.viagenie.ca',
          credential: 'muazkh',
          username: 'webrtc@live.com',
        },
      ],
    }
})