Hi,
When I join to room and received
feed configured{
“jsep”: {
“type”: “answer”,
“sdp”: “v=0\r\no=- 8084282955038942963 2 IN IP4 …”
},
“room”: 1234,
“feed”: 7576142474481194,
“streams”: [
{
“type”: “audio”,
“mindex”: 0,
“mid”: “0”,
“codec”: “opus”,
“fec”: true
},
{
“type”: “video”,
“mindex”: 1,
“mid”: “1”,
“codec”: “vp8”
}
]
}
then I received a error: videoroom error 429 Missing mandatory element (room).
I can’t find out document about this error. Please tell me where I went wrong!
Thanks
Thien
I fixed it:
in videoroom-client.js add configureData.room = myRoom;
// my code:
function configure({ feed, display, jsep, restart, streams }) {
const configureData = {};
if (feed) configureData.feed = feed;
if (display) configureData.display = display;
if (jsep) configureData.jsep = jsep;
if (streams) configureData.streams = streams;
configureData.room = myRoom;
if (typeof restart === ‘boolean’) configureData.restart = restart;
const configId = getId();
socket.emit(‘configure’, {
data: configureData,
_id: configId,
});
if (jsep)
pendingOfferMap.set(configId, { feed });
}
If you think this is a bug could you please open a PR on GitHub?
Thank. Okay I will do that