Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom JitsiSDK with latest react-native-webrtc addStream is not a function #425

Open
MaratowKyryl opened this issue Jan 23, 2023 · 0 comments

Comments

@MaratowKyryl
Copy link

I tried to update react-native-webrtc library in my custom Jitsi SDK in react native project to latest version that supports only Unified Plan. I got an error TypeError: this.peerconnection.addStream is not a function. and no incoming Jingle sessin is accepting. My SDK based on 5.1.0 version of jitsi-meet. With latest release of react-native-webrtc that supports Plan B (1.106.1) everything is working. Is it any way how I can make work my custom sdk with latest webRTC and Unified Plan without updating jitsi-meet?

There is my logs from cusom jitsi sdk and react-native-webrtc v106.0.0:

01-09 19:02:10.959 32695 802 D JitsiMeetSDK: [modules/qualitycontrol/ReceiveVideoController.js] Updating ReceiverVideoConstraints {"constraints":{"38b298ac":{"maxHeight":2160}},"defaultConstraints":{"maxHeight":0},"onStageEndpoints":["38b298ac"],"selectedEndpoints":[]}
01-09 19:02:10.973 32695 802 I JitsiMeetSDK: [features/video-quality] Setting sender resolution to 1080
01-09 19:02:10.978 32695 802 I JitsiMeetSDK: [features/video-quality] Configured preferred receiver video frame height to: 1080
01-09 19:02:11.011 32695 802 D JitsiMeetSDK: ExternalAPI Sending event: CONFERENCE_JOINED with data: { NativeMap: {"url":"https://pl-dev.shkolo.live/6e4a1482-d63a-4e05-a7ae-e8403547d8e8"} }
01-09 19:02:11.016 32695 802 D JitsiMeetSDK: JitsiConnectionService reportConnectedOutgoingCall B59F4E8A-559F-4B49-91FB-4A713D46509E
01-09 19:02:11.016 32695 802 D JitsiMeetSDK: JitsiConnectionService onStateChanged: ACTIVE B59F4E8A-559F-4B49-91FB-4A713D46509E
01-09 19:02:11.017 32695 804 I JitsiMeetSDK: AudioMode Update audio route for mode: 2
01-09 19:02:11.017 32695 802 D JitsiMeetSDK: [JitsiConference.js] P2P? peerCount: 1, hasBotPeer: false => true
01-09 19:02:11.018 32695 802 I JitsiMeetSDK: [JitsiConference.js] Will start P2P with: 6e4a1482-d63a-4e05-a7ae-e8403547d8e8@conference.pl-dev.shkolo.live/38b298ac
01-09 19:02:11.018 32695 802 I JitsiMeetSDK: [JitsiConference.js] Created new P2P JingleSession 6e4a1482-d63a-4e05-a7ae-e8403547d8e8@conference.pl-dev.shkolo.live/1125a3e0 6e4a1482-d63a-4e05-a7ae-e8403547d8e8@conference.pl-dev.shkolo.live/38b298ac
01-09 19:02:11.028 32695 804 I JitsiMeetSDK: AudioMode Selected audio device: SPEAKER
01-09 19:02:11.029 32695 804 I JitsiMeetSDK: AudioMode Updating audio device list
01-09 19:02:11.030 32695 32695 I JitsiMeetSDK: JitsiMeetOngoingConferenceService Service started
01-09 19:02:11.038 32695 802 D JitsiMeetSDK: [modules/RTC/RTC.js] WebRTC application is running in plan-b mode
01-09 19:02:11.039 32695 802 I JitsiMeetSDK: [modules/RTC/TraceablePeerConnection.js] Create new TPC[id=1,type=P2P]
01-09 19:02:11.115 32695 802 I JitsiMeetSDK: [JitsiConference.js] Starting CallStats for P2P connection...
01-09 19:02:11.148 32695 802 I JitsiMeetSDK: [modules/RTC/TraceablePeerConnection.js] TPC[id=1,type=P2P] adding LocalTrack[1,audio]
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: [modules/util/AsyncQueue.js] Task failed: index.android.bundle:843:628958
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: index.android.bundle:843:627706
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: index.android.bundle:843:483934
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: [email protected]:843:471060
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: value@[native code]
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: index.android.bundle:843:470884
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: index.android.bundle:843:463870
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: index.android.bundle:843:461411
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: [email protected]:85:157
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: index.android.bundle:85:866
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: index.android.bundle:93:1662
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: [email protected]:93:498
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: [email protected]:93:888
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: [email protected]:93:3055
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: [email protected]:45:2868
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: index.android.bundle:45:960
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: [email protected]:45:2504
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: [email protected]:45:919
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: value@[native code]
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: value@[native code]
01-09 19:02:11.149 32695 802 E JitsiMeetSDK: [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=P2P,initiator=true,sid=cddbe0819a56] invite error Error(TypeError){"message":"this.peerconnection.addStream is not a function. (In 'this.peerconnection.addStream(e)', 'this.peerconnection.addStream' is undefined)","stack":"index.android.bundle:843:628958\nindex.android.bundle:843:627706\nindex.android.bundle:843:483934\[email protected]:843:471060\nvalue@[native code]\nindex.android.bundle:843:470884\nindex.android.bundle:843:463870\nindex.android.bundle:843:461411\[email protected]:85:157\nindex.android.bundle:85:866\nindex.android.bundle:93:1662\[email protected]:93:498\[email protected]:93:888\[email protected]:93:3055\[email protected]:45:2868\nindex.android.bundle:45:960\[email protected]:45:2504\[email protected]:45:919\nvalue@[native code]\nvalue@[native code]"}
01-09 19:02:11.151 32695 802 D JitsiMeetSDK: [modules/qualitycontrol/ReceiveVideoController.js] Updating ReceiverVideoConstraints {"constraints":{"38b298ac":{"maxHeight":1080}},"defaultConstraints":{"maxHeight":0},"onStageEndpoints":["38b298ac"],"selectedEndpoints":[]}
01-09 19:02:11.151 32695 802 I JitsiMeetSDK: [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=P2P,initiator=true,sid=cddbe0819a56] setReceiverVideoConstraint - max frame height: 1080 sourceReceiverConstraints: undefined
01-09 19:02:11.297 32695 802 I JitsiMeetSDK: [modules/xmpp/strophe.jingle.js] Found a JSON-encoded element in session-initiate, translating to standard Jingle.
01-09 19:02:11.304 32695 802 I JitsiMeetSDK: [modules/xmpp/strophe.jingle.js] (TIME) received session-initiate: 1283122072.806157
01-09 19:02:11.304 32695 802 D JitsiMeetSDK: [modules/RTC/RTC.js] WebRTC application is running in plan-b mode
01-09 19:02:11.309 32695 802 I JitsiMeetSDK: [modules/RTC/TraceablePeerConnection.js] Create new TPC[id=2,type=JVB]
01-09 19:02:11.309 32695 802 D JitsiMeetSDK: [modules/RTC/BridgeChannel.js] constructor() with wsUrl:"wss://pl-dev.shkolo.live:443/colibri-ws/default-id/27b45b1ce39447a2/1125a3e0?pwd=5nmk3cf92kdu9hi5poi2omf42g"
01-09 19:02:11.319 32695 802 I JitsiMeetSDK: [JitsiConference.js] Starting CallStats for JVB connection...
01-09 19:02:11.325 32695 802 I JitsiMeetSDK: [modules/RTC/TraceablePeerConnection.js] TPC[id=2,type=JVB] adding LocalTrack[1,audio]
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: [modules/util/AsyncQueue.js] Task failed: index.android.bundle:843:628958
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: index.android.bundle:843:627706
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: index.android.bundle:843:486059
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: [email protected]:843:471060
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: value@[native code]
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: index.android.bundle:843:470884
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: index.android.bundle:843:463870
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: index.android.bundle:843:461411
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: [email protected]:85:157
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: index.android.bundle:85:866
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: index.android.bundle:93:1662
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: [email protected]:93:498
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: [email protected]:93:888
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: [email protected]:93:3055
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: [email protected]:45:2868
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: index.android.bundle:45:960
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: [email protected]:45:2504
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: [email protected]:45:919
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: value@[native code]
01-09 19:02:11.326 32695 802 E JitsiMeetSDK: value@[native code]
01-09 19:02:11.327 32695 802 E JitsiMeetSDK: [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=fbss55th9m626] setOfferAnswerCycle task failed: TypeError: this.peerconnection.addStream is not a function. (In 'this.peerconnection.addStream(e)', 'this.peerconnection.addStream' is undefined)
01-09 19:02:11.327 32695 802 E JitsiMeetSDK: [JitsiConference.js] Failed to accept incoming Jingle session Error(TypeError){"message":"this.peerconnection.addStream is not a function. (In 'this.peerconnection.addStream(e)', 'this.peerconnection.addStream' is undefined)","stack":"index.android.bundle:843:628958\nindex.android.bundle:843:627706\nindex.android.bundle:843:486059\[email protected]:843:471060\nvalue@[native code]\nindex.android.bundle:843:470884\nindex.android.bundle:843:463870\nindex.android.bundle:843:461411\[email protected]:85:157\nindex.android.bundle:85:866\nindex.android.bundle:93:1662\[email protected]:93:498\[email protected]:93:888\[email protected]:93:3055\[email protected]:45:2868\nindex.android.bundle:45:960\[email protected]:45:2504\[email protected]:45:919\nvalue@[native code]\nvalue@[native code]"}
01-09 19:02:11.521 32695 802 I JitsiMeetSDK: [modules/RTC/BridgeChannel.js] websocket channel opened
01-09 19:02:11.521 32695 802 I JitsiMeetSDK: [JitsiConferenceEventManager.js] (TIME) data.channel.opened: 1283122295.64808
01-09 19:02:11.521 32695 802 I JitsiMeetSDK: [modules/RTC/BridgeChannel.js] Sending ReceiverVideoConstraints with {"constraints":{"38b298ac":{"maxHeight":1080}},"defaultConstraints":{"maxHeight":0},"onStageEndpoints":["38b298ac"],"selectedEndpoints":[]}
01-09 19:02:11.521 32695 802 D JitsiMeetSDK: [modules/RTC/BridgeChannel.js] Sending VideoTypeMessage with video type as camera
01-09 19:02:11.522 32695 802 I JitsiMeetSDK: [modules/RTC/BridgeChannel.js] Received ServerHello, version=undefined.
01-09 19:02:12.001 32695 802 D JitsiMeetSDK: [modules/qualitycontrol/ReceiveVideoController.js] Updating ReceiverVideoConstraints {"constraints":{"38b298ac":{"maxHeight":1080}},"defaultConstraints":{"maxHeight":0},"lastN":-1,"onStageEndpoints":["38b298ac"],"selectedEndpoints":[]}
01-09 19:02:12.001 32695 802 I JitsiMeetSDK: [modules/RTC/BridgeChannel.js] Sending ReceiverVideoConstraints with {"constraints":{"38b298ac":{"maxHeight":1080}},"defaultConstraints":{"maxHeight":0},"lastN":-1,"onStageEndpoints":["38b298ac"],"selectedEndpoints":[]}
01-09 19:02:12.001 32695 802 I JitsiMeetSDK: [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=P2P,initiator=true,sid=cddbe0819a56] setReceiverVideoConstraint - max frame height: 1080 sourceReceiverConstraints: undefined
01-09 19:02:21.332 32695 802 E JitsiMeetSDK: [modules/statistics/AvgRTPStatsReporter.js] bandwidth_upload - invalid value for idx: 0 undefined
01-09 19:02:21.332 32695 802 E JitsiMeetSDK: [modules/statistics/AvgRTPStatsReporter.js] bandwidth_download - invalid value for idx: 0 undefined
01-09 19:02:26.489 32695 802 I JitsiMeetSDK: [modules/RTC/BridgeChannel.js] Endpoint connection status changed: 1125a3e0 active=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant