更新 frontend/src/utils/mediasoup-client.js

This commit is contained in:
2026-05-16 21:12:21 +08:00
parent b347b44473
commit 45c0852a36

View File

@@ -213,13 +213,13 @@ export function createMediaEngine({ roomCode, userId, sendWithAck, logger = defa
/** 首次创建 sendTransport 的底层流程,原本 inline 在 ensureSendTransport 中 */
const _createSendTransport = async () => {
const info = await requestTransportInfo('send')
const iceServers = [
{
urls: 'turn:123.6.102.114:3478?transport=udp',
username: 'echochat',
credential: 'echochat_2026-1s32dswW@#'
}
];
// const iceServers = [
// {
// urls: 'turn:123.6.102.114:3478?transport=udp',
// username: 'echochat',
// credential: 'echochat_2026-1s32dswW@#'
// }
//];
sendTransport = device.createSendTransport({
id: info.id,
iceParameters: info.iceParameters,