#3 update
All checks were successful
Deploy / deploy (push) Successful in 29s

This commit is contained in:
Никита Круглицкий 2025-10-01 22:58:15 +06:00
parent 45acafb06c
commit 3558944c3f

View File

@ -3,6 +3,19 @@ import { createGlobalState } from '@vueuse/core'
import * as mediasoupClient from 'mediasoup-client'
import { io } from 'socket.io-client'
const ICE_SERVERS: RTCIceServer[] = [
{ urls: 'stun:stun.l.google.com:19302' },
{ urls: 'stun:stun.l.google.com:5349' },
{ urls: 'stun:stun1.l.google.com:3478' },
{ urls: 'stun:stun1.l.google.com:5349' },
{ urls: 'stun:stun2.l.google.com:19302' },
{ urls: 'stun:stun2.l.google.com:5349' },
{ urls: 'stun:stun3.l.google.com:3478' },
{ urls: 'stun:stun3.l.google.com:5349' },
{ urls: 'stun:stun4.l.google.com:19302' },
{ urls: 'stun:stun4.l.google.com:5349' },
]
export const useMediasoup = createGlobalState(() => {
const socket: Socket = io('https://api.koptilnya.xyz', {
path: '/chad/ws/',
@ -46,7 +59,7 @@ export const useMediasoup = createGlobalState(() => {
sendTransport = device.createSendTransport({
...params,
iceServers: [
{ urls: 'stun:stun.sipnet.ru:3478' },
...ICE_SERVERS,
...(params.iceServers ?? []),
],
})
@ -92,7 +105,7 @@ export const useMediasoup = createGlobalState(() => {
recvTransport = device.createRecvTransport({
...params,
iceServers: [
{ urls: 'stun:stun.sipnet.ru:3478' },
...ICE_SERVERS,
...(params.iceServers ?? []),
],
})