Commit e683f5d
authored
ios: enable camera switching (react-native-webrtc#837)
If the devices has been requested with the parameter `deviceId` like
this `navigator.mediaDevices.getUserMedia({video: {deviceId: 'n'}})`
the method `_switchCamera` will not work. Setting the `_deviceId` to `NULL`
in the `switchCamera` method will allow the change.1 parent 059aca9 commit e683f5d
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
0 commit comments