You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
componentWillUnmount doesn't get called when you restart the JS thread
Steps to reproduce
Join a room
Either trigger a reload by pressing R inside the metro bundler, or by doing () => DevSettings.reload?.() from {DevSettings} from 'react-native'
You'll notice the call is still 'active' in the background, if you join again you will only see black feeds (either from the remote and/or local view)
Expected behaviour
It would be nice if the room is destroyed if it's not null when the component is instantiated again (on iOS, the room is cleared)
Actual behaviour
When participants are in the room for the first time
When one participant have their JS thread reload and attempt to join again
Environment
Node.js version: 16.5.0
React Native version: 0.65.1, 0.63.4
React Native platform + platform version: Android 7.0 and Android API 30
react-native-twilio-video-webrtc
Version: master
I'll be opening a PR within a few minutes but I'm opening an issue here just so people are aware of the situation (?) sorry didn't thoroughly check the existing issues but i feel like those black feeds are related to this one
Edit:
Question/Concern:
There might be cases where we want the room to still be connected, but I'm not sure how to properly handle this
For example launching a native UI when you receive a call, and then continuing in the JS thread.
Maybe such functionality can be added in the future by exposing a boolean or something (not an Android developer hehe)
The text was updated successfully, but these errors were encountered:
Hi team,
I tried the given solution, but still occurring the same issue.
I checked, updated code is not available in the master Branch,
I replaced the "CustomTwilioVideoView.java" file in my project, even tried with the piece of code which you added for the issue, But it's giving the same error.
Team when you will merge this code to the master branch?
componentWillUnmount
doesn't get called when you restart the JS threadSteps to reproduce
R
inside the metro bundler, or by doing() => DevSettings.reload?.()
from{DevSettings} from 'react-native'
Expected behaviour
Actual behaviour
Environment
react-native-twilio-video-webrtc
Version: master
I'll be opening a PR within a few minutes but I'm opening an issue here just so people are aware of the situation (?) sorry didn't thoroughly check the existing issues but i feel like those black feeds are related to this one
Edit:
Question/Concern:
The text was updated successfully, but these errors were encountered: