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({
iceServers: [{
urls: 'turn:satori.love:3478',
username: '', // 'your-username',
credential: '', // await crypto.subtle.digest('SHA-1', new TextEncoder().encode('your-password')),
credentialType: 'password'
username: 'your-username',
credential: await crypto.subtle.digest('SHA-1', new TextEncoder().encode('your-password')),
//credentialType: 'password'
}]
})
webrtc.onicecandidate = event => {