Can't produce/consume stream from android

IMPORTANT: We primarily use GitHub as an issue tracker. Just open an issue here if you have encountered a bug in mediasoup-client.

If you have questions or doubts about mediasoup-client or need support, please use the mediasoup Discourse Group instead:

https://mediasoup.discourse.group

Your environment

  • Operating system: React Native and Chrome
  • Browser version:
  • npm version:6.14.10
  • mediasoup version: 3.6.32
  • mediasoup-client version: 3.6.28

Issue description

producerTransport.on('connectionstatechange', (state) => {
          switch (state) {
            case 'connecting':
              console.log('publishing...');
              break;
            case 'connected':
              console.log('published');
              break;

            case 'failed':
              console.log('failed');
              producerTransport.close();
              break;
            default:
              break;
          }
        });

consumerTransport.on('connectionstatechange', (state) => {
            switch (state) {
              case 'connecting':
                console.log('subscribing...');
                break;

              case 'connected':
                console.log('subscribed');
                //consumeCurrentProducers(clientId);
                break;

              case 'failed':
                console.log('failed');
                producerTransport.close();
                break;

              default:
                break;
            }
          });

Android always show failed when produce/consume stream.
IOS is working fine, can produce video and consume stream.
Hope anyone can help me out this issue.

Same here.

Did you find a solution? I’ll let you know if I ever find a fix for my problem.

I’d really like to see debug logging but couldn’t get it to work with AsyncStorage.

Hello, I found issue. In my case, reason is listenIp I set 127.0.0.1 in server side. that’s why simulator work and my real device not working. I changed to mac’s privateIP, then it worked and able to communicate between real device and simulator. Let’s check this point. Good luck!

Yep, you’re right, thank you for replying!!! <3