react-native-twilio-video-webrtc icon indicating copy to clipboard operation
react-native-twilio-video-webrtc copied to clipboard

Participant Video does not resume back on website, when user comes to foreground from background on android device

Open vaishnavtn opened this issue 4 years ago • 6 comments

Steps to reproduce

  1. Start Video conference from Android with Website
  2. Go in background on android and come back to foreground
  3. Video of android participant is not resuming back at website.

Note: Same scenario works fine, while video conference is in between android to android/android to iPhone/iPhone to iPhone/iPhone to Website. Issue is only if VC is in between android and website.

Expected behaviour

Android participant video should resume back on website, when android user comes back to foreground from background.

Actual behaviour

Android participant video does not resume back on website, when android user comes back to foreground from background.

Environment

  • Node.js version - 10.8.0
  • React Native version - 0.61.5
  • React Native platform - Android

react-native-twilio-video-webrtc

Version: "master"

vaishnavtn avatar Jul 02 '21 05:07 vaishnavtn

Does the website give any diagnostics? I.e. in the erroneous case does it not see the track published / enabled?

slycoder avatar Jul 05 '21 18:07 slycoder

No, not triggering any event at all.

vaishnavtn avatar Jul 06 '21 03:07 vaishnavtn

Do you know if there are any differences in the room settings (e.g. peer-to-peer vs group, preferred codec, etc.)? Can you tell if the android side thinks it's successfully republished the track in onHostResume?

slycoder avatar Jul 06 '21 06:07 slycoder

We are using room type - 'group'. Will confirm on onHostResume soon.

vaishnavtn avatar Jul 07 '21 13:07 vaishnavtn

@vaishnavtn is it resolved?

Balasnest avatar Aug 12 '21 07:08 Balasnest

@vaishnavtn you can pass maintainVideoTrackInBackground if its okay to not release the vdieo track when you go to the background. I was having the same issue before that. Just pass the value when you connect

twilioRef.current?.connect({
      roomName: room,
      accessToken: token,
      maintainVideoTrackInBackground: true,
      enableVideo: false,
      enableAudio: true
    })

CaptainJeff avatar Sep 22 '21 12:09 CaptainJeff