我有以下代码可以在Chrome和Firefox中正常运行,但不能在Edge中运行。 出现错误:
无法连接到会议室:媒体连接失败
能否请您确认并确认其不起作用:
let connectOptions = {
name: roomIdentity,
tracks: [localAudioTrack, localVideoTrack]
}
console.log(connectOptions)
//creating stream for agent
if (this.context.agent) {
TwilioVideo.connect(twilioToken, connectOptions)
.then(room => {
//attach error handler to room object
room.on('disconnected', (room, error) => {})
}, error => {
console.error('Unable to connect to Room: ' + error.message)
})
修改1: 填充错误输出:
code: 53405
description: "Media connection failed"
message: "Media connection failed"
name: "TwilioError"
stack: "TwilioError: Media connection failed at _getOrCreate (http://localhost:64000/static/js/1.chunk.js:322197:11) at Anonymous function (http://localhost:64000/static/js/1.chunk.js:322274:9) at Anonymous function (http://localhost:64000/static/js/1.chunk.js:97029:13) at flush (http://localhost:64000/static/js/1.chunk.js:91027:9)"