I can successfully produce, consume, produceData, and consumeData, but the one who joins a room first cannot produce sound.
For example, if there are A and B in a room,
if A joins a room first, B can talk to A, but no sound would come from A.
Do you have any ideas?
I used sendTransport.on('connectionstatechange')
and found out the connectionstate
become connected
before another user joins a room.
this.sendTransport.on('connectionstatechange', (connectionState) => {
console.log('connectionState: ', connectionState);
if (connectionState === 'connected') {
this.produceData();
}
});
ibc
(Iñaki Baz Castillo)
3
You must NOT wait for “connectionstatechange” in order to consume() or produce(). That’s not documented anywhere.