设置ICE服务器
const rtcConfiguration = {
iceServers: [
{url: "stun:192.168.1.112:3478"},
{
url: "turn:192.168.1.112:3478",
username: "admin",
credential: "admin"
}
]
}
const peer = new PeerConnection(rtcConfiguration);