更新 frontend/src/utils/mediasoup-client.js
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user