ios: add all available camera device types
Fixes #1560
Thanks for the patch!
I fear this will break existing apps since there used to be just 2 camera sources.
Can we at least guarantee the first result is the same as before?
Thanks for the patch!
I fear this will break existing apps since there used to be just 2 camera sources.
Can we at least guarantee the first result is the same as before?
I change the order so that it continues to work the same way. It seems like findDeviceForPosition just iterates so it should be fine, what do you think?
https://github.com/react-native-webrtc/react-native-webrtc/blob/master/ios/RCTWebRTC/VideoCaptureController.m#L190
LGTM 🤔 Haven't tested but as long as the original functionality remains, should be good to go.
I'll test it after the 124 changes and if all is good we can merge!