react-native-twilio-video-webrtc
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
Steps to reproduce
- Start Video conference from Android with Website
- Go in background on android and come back to foreground
- 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"
Does the website give any diagnostics? I.e. in the erroneous case does it not see the track published / enabled?
No, not triggering any event at all.
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?
We are using room type - 'group'. Will confirm on onHostResume soon.
@vaishnavtn is it resolved?
@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
})