App crashes on Android Nougat, Kitkat and Jellybean. Also on IOS 9 and 8
See original GitHub issueI was trying to implement a peer to peer video call. I got it working even cross platforms but it has an issue regarding with the platform versions.
I tried to debug and found out where it crashes. By the time i call getUserMedia it crashes, not if I remove the video from the object constraint parameter and leave just the audio.
For example:
working:
getUserMedia({ audio: true })
not working:
getUserMedia({ audio: true, video: { mandatory: { minWidth: width, minHeight: height, minFrameRate: 30, }, facingMode: 'user' } })
Expected behavior
Successfully sends and receives video requests. can do peer to peer video call.
Observered behavior
App crashes upon sending video request and also upon receiving.
Steps to reproduce the problem
Start the call process or receive the call.
Platform information
- React Native version: RN v 0.47.0
- Plugin version: 1.58.3
- OS: Android
- OS version: Nougat 7.0, Kitkat 4.4, Jellybean 4.3
- OS: IOS
- OS version: 9, 8
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Yes, android has changed their policy since marshmallow, as for iOS I’m not quite sure with 8 and 9 since I’m working fine with the latest version.
Try this out, https://github.com/yonahforst/react-native-permissions
@Jerameel I just want to clarify that the crashing issue that i encountered has nothing to do with the permission thing. It was the getUserMedia constraint i set for the video. I provided too much height and width that causes the crashing. But the permission work around you suggested solved a different issue i encountered after i solved the crashing problem. Thanks a lot!