Open vaishnavtn opened 3 years ago
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
})
Steps to reproduce
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
react-native-twilio-video-webrtc
Version: "master"