Hi All,
I’m having some issue getting the app to produce. It fails whilst attempting to publish and get connected to the producer. I’m listening to the connectionstatechange
event on the producer like so:
switch (state) {
case 'connecting':
console.log('publishing...');
break;
case 'connected':
console.log('published');
break;
case 'failed':
console.log('failed');
liveRef.producerTransport.close();
break;
default:
break;
}
};
// later, I'm calling the producerTransport saved into a React Ref.
liveRef.producerTransport = liveRef.device.createSendTransport(params);
producerTransport.on('connectionstatechange', (eventState) => onProducerTransportConnectionStateChange(eventState) );
Perhaps you guys can spot what I’m doing wrong.
Thanks for your help,