更新 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 中 */
|
/** 首次创建 sendTransport 的底层流程,原本 inline 在 ensureSendTransport 中 */
|
||||||
const _createSendTransport = async () => {
|
const _createSendTransport = async () => {
|
||||||
const info = await requestTransportInfo('send')
|
const info = await requestTransportInfo('send')
|
||||||
const iceServers = [
|
// const iceServers = [
|
||||||
{
|
// {
|
||||||
urls: 'turn:123.6.102.114:3478?transport=udp',
|
// urls: 'turn:123.6.102.114:3478?transport=udp',
|
||||||
username: 'echochat',
|
// username: 'echochat',
|
||||||
credential: 'echochat_2026-1s32dswW@#'
|
// credential: 'echochat_2026-1s32dswW@#'
|
||||||
}
|
// }
|
||||||
];
|
//];
|
||||||
sendTransport = device.createSendTransport({
|
sendTransport = device.createSendTransport({
|
||||||
id: info.id,
|
id: info.id,
|
||||||
iceParameters: info.iceParameters,
|
iceParameters: info.iceParameters,
|
||||||
|
|||||||
Reference in New Issue
Block a user