Opentok react native cannot switch or open Back Camera

58 views Asked by At

"react": "18.2.0", "react-native": "0.71.10", "react-native-camera": "^4.2.1", "opentok-react-native": "^0.21.4",

setting position front works perfectly

this.publisherProperties = {
  cameraPosition: 'front',
};

But when I write cameraPosition: 'back'

It doesn't connect the call and sometimes gives error publisher timeout and shows black screen.

Have tried almost all the solutions from stackoverflow or github but no luck so far.

0

There are 0 answers