This commit is contained in:
2023-10-01 14:35:00 +08:00
parent fc5862aa8a
commit 2083f5f8fa
1 changed files with 3 additions and 3 deletions

View File

@ -19,9 +19,9 @@ export default class ClientList {
const webrtc = new RTCPeerConnection({ const webrtc = new RTCPeerConnection({
iceServers: [{ iceServers: [{
urls: 'turn:satori.love:3478', urls: 'turn:satori.love:3478',
username: '', // 'your-username', username: 'your-username',
credential: '', // await crypto.subtle.digest('SHA-1', new TextEncoder().encode('your-password')), credential: await crypto.subtle.digest('SHA-1', new TextEncoder().encode('your-password')),
credentialType: 'password' //credentialType: 'password'
}] }]
}) })
webrtc.onicecandidate = event => { webrtc.onicecandidate = event => {