question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onIceCandidate do not create any candidate for Video

See original GitHub issue

After Invoke createOffer , I will receive onIceCandidate event, but it only add candidate for audio. there are no candidate for video. It works okay in 1.54.7, but failed from 1.57.0.

  • React Native version: 0.44.3
  • Plugin version: 1.57.0, 1.57.1,1.58.1
  • OS: 10.3.1/ iPhone

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
seven1240commented, Sep 12, 2017

Any updates on this?

I have the same issue “react”: “16.0.0-alpha.12”, “react-native”: “^0.46.4”, “react-native-webrtc”: “git+https://git@github.com/oney/react-native-webrtc.git”,

2reactions
saghulcommented, Dec 13, 2017

Thanks @havardholvik. That looks correct as per the max-bundle policy: https://bugs.chromium.org/p/webrtc/issues/detail?id=6132 The M58 SDP is using the max-bundle policy, but it doesn’t seem to be advertising it 😒 https://bugs.chromium.org/p/webrtc/issues/detail?id=4674&thanks=4674&ts=1432055914

I guess this (the default policy) changed internally in libwebrtc, since we didn’t do anything intentional to this effect in this plugin.

Let’s try something (untested):

Edit this file and add the following after the highlighted line: https://github.com/oney/react-native-webrtc/blob/fcb20492bc49122d93993ae5083076f5ef6284ee/ios/RCTWebRTC/RCTConvert%2BWebRTC.m#L90

config.bundlePolicy = RTCBundlePolicyMaxCompat;

The change is for iOS only. Once we confirm the fix I can look into Android.

Last, question: what is your other endpoint?

Read more comments on GitHub >

github_iconTop Results From Across the Web

RTCPeerConnection.onicecandidate not fire - Stack Overflow
3)Broadcaster can receive answer, set remote description, but I could not create ice candidate. Any insight why the RTCPeerConnection.
Read more >
Local ICE candidate not generated for 1-1 video call using ...
After debugging we found out that local ice candidate is not being generated. peer.onicecandidate = function (event) { console.log("Generating Local ICE ...
Read more >
RTCPeerConnection: icecandidate event - Web APIs | MDN
Contains the RTCIceCandidate containing the candidate associated with the event, or null if this event indicates that there are no further ...
Read more >
WebRTC for Beginners | Muaz Khan
In simple words: onicecandidate returns locally generated ICE candidates so you can pass them over other peer(s) via XHR or Socket. "locally-generated" means ......
Read more >
186302 – iOS does not call onIceCandidate - WebKit Bugzilla
I can create a data channels for the following: - MacOS Safari 11.1.1 (on older ... Android (always worked) However onIceCandidate is never...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found