No video transmission with React Native SDK

Hendrik Belitz

We are currently experiencing some problems when using the video chat feature within CometChat React Native. While connecting seems to work and audio is transmitted, the video signal does not get transfered between chat partners. I assume that this is a problem with react-native-webrtc, since I see a couple of errors showing up repeatedly when running in debug mode (these errors will continue to appear even after the call was dropped). As you can see, the errors are identical on both platforms

iOS:
 LOG  JitsiManager [addTrackToRoom] {}
ERROR  2022-10-25T12:44:45.161Z [modules/util/AsyncQueue.js] Task failed:  TypeError: undefined is not a function
ERROR  2022-10-25T12:44:45.164Z [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=4g102krmf4lg6] Replace track error: [TypeError: this.peerconnection.addStream is not a function. (In 'this.peerconnection.addStream(n)', 'this.peerconnection.addStream' is undefined)]
ERROR  2022-10-25T12:44:45.174Z [JitsiConference.js] replaceTrack failed
TypeError: undefined is not a function

Android:
 LOG  JitsiManager [addTrackToRoom] {}
 ERROR  2022-10-25T12:54:15.468Z [modules/util/AsyncQueue.js] <_processQueueTasks>:  Task failed: TypeError: undefined is not a function
 ERROR  2022-10-25T12:54:15.485Z [modules/xmpp/JingleSessionPC.js] <anonymous>:  JingleSessionPC[session=JVB,initiator=false,sid=6i1cbq27nv0j6] Replace track error: [TypeError: undefined is not a function]
 ERROR  2022-10-25T12:54:15.550Z [JitsiConference.js] <anonymous>:  replaceTrack failed: TypeError: undefined is not a function

Versions we're using (downgrading @cometchat-pro/react-native-calls is not an option, since this is the first version where we did not experience repeating app crashes with):

@cometchat-pro/react-native-calls 2.3.0-beta1
@cometchat-pro/react-native-chat 3.0.10
react-native-webrtc:  106.0.0-beta.5

Replies

1 comment

  • Comment author
    Keagan
    • Edited

    Hey Hendrik,

    We have created a ticket for your concern and reached out to you over email. We will continue our conversation there.

    Thank you.

    Keagan Ellis
    CometChat

    0

Please sign in to leave a comment.