ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
125 stars 111 forks source link

Switch Camera freezes on Android -> IOS Calls for Remote Stream #108

Closed stephanoparaskeva closed 2 years ago

stephanoparaskeva commented 4 years ago

Sometimes when I change camera mode from front to back or vice versa On Android Device, the stream freezes on the Remote IOS device.

The call is between an Android and IOS device. This also sometimes happens on Android -> Android Calls.

When I change camera on IOS device, it always works fine.

Steps

Code

 const toggleCamera = () => {
    setIsFrontCamera(!isFrontCamera);
    localStream[0]?.stream
      ?.getVideoTracks?.()
      .forEach((track: Track) => track._switchCamera());
  };
ccvlad commented 4 years ago

Please provide the device info (Galaxy S6 with Nougat?) We will try to test.

stephanoparaskeva commented 4 years ago

Please provide the device info (Galaxy S6 with Nougat?) We will try to test.

Info

Device name: Galaxy S6
Model: SM-G920F
Android Version: 7.0 (Nougat)
stephanoparaskeva commented 4 years ago

Any progress?

ccvlad commented 2 years ago

Closed due to inactivity. Please create a new issue if needed.