-
Notifications
You must be signed in to change notification settings - Fork 727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frozen screen when clicking 'stop video' on android Chrome #355
Comments
Thanks for the issue @thepug! I can confirm this issue - I'm able to easily reproduce it on my Pixel 4a. What's strange is that the app appears to be responding correctly under the hood (using Chrome devtools on desktop), but the app on the phone is frozen. There are no errors in the JS console. Selecting Chrome from the app switcher also fixes the issue for me. We will research this one more, but it appears that it may be a problem with Pixel phones and not a problem with the app. Lots of people have described the same issue in this thread here: https://support.google.com/pixelphone/thread/58697077?hl=en |
This does indeed appear to be a wider issue with closing media streams on Android 11. It is reproducible with a minimal example that opens a I have filed an Android bug at https://issuetracker.google.com/u/1/issues/173142922: @thepug please add any additional information you have there. |
I have filed a chromium bug for this issue @ https://bugs.chromium.org/p/chromium/issues/detail?id=1148532 |
I have this issue as well. Not just with Pixel, I have OnePlus 8 Pro, seems like general Chrome issue :( It also fails when you switch between front facing / back facing cameras, as well as when the user toggle video. Currently, I'm sort of getting around it the following way:
|
@dzhng I was thinking about similar solution but in my case it was too risky and I can't afford the possibility to crash users browser. Even refreshing the page make the browser's freeze (I guess tracks are stopped then what causes the crash). To handle this issue I just extended the unsupported browsers list by The new
To fix it 100% we have to wait till Chrome devteam fixes the issue @makarandp0 mentioned. |
Been experimenting with this for the past 2 hrs, it seems like the freeze rate is a lot less if you unpublish the track before stopping / restarting it. |
Having experimented, I found several ways to avoid freezing when stopping media stream tracks
|
@BelkinVadim Wow, it works! I just tested it on my project and finally browser is not freezed on video input source change. Thanks a lot! Can I ask where I can find the method |
@barthicus I also found that a similar problem exists on iPhone 12, and it is on iPhone 12 with iOS 14.3 version. There is a freeze when switching cameras. There is no such problem on iPhone < 12 with any iOS version |
@BelkinVadim which browser / version did you encounter the iPhone 12 / iOS 14.3 issue with? |
@hrickardsaw Safari 14.3. The first method helps there, with srcObject reset. I don't have a iPhone 12 right now. There is no way to check the method with Continuing the theme Android 11 + Chrome. The problem with freezing can happen when you try to reload the page while displaying an active stream from the camera. This freeze is not stable for me, but it happens periodically |
@BelkinVadim Thanks for your effort on figuring out a workaround/solution for this! The video. srcObject = null solution seems to be working on my Samsung S21/Android 11/Chrome and Pixel 4, which were earlier facing this issue. |
I checked it on the updated iOS 14.4 - there is no problem, perhaps when switching from 14.3 to 14.4 the problem was fixed |
Following this thread twilio/twilio-video-app-react#355 Calling the `stream.removeTrack` before `.stop()` fixes the freezing issues in Android 11.
Hey everyone! There's an update in this Chromium issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1138823 The most recent comment in that issue states:
I'll keep an eye out for this new version of Chrome to verify that the problem has been fixed. |
Hey everyone! Looks like the fix has been released! I just tried the app in Chrome 92 on an Android device, and I no longer can reproduce the frozen screen issue. I'll close this issue as it appears resolved. Please let me know if there are any outstanding issues or questions! |
Following this thread twilio/twilio-video-app-react#355 Calling the `stream.removeTrack` before `.stop()` fixes the freezing issues in Android 11.
Describe the bug
On an android pixel 3 and google chrome, if I click the 'stop video' button after joining a room, the app freezes. The other participants can still see and hear the host but none of the elements are clickable, etc.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Stop video will mute the video and the app is still usable.
Screenshots
Environment (please complete the following information):
"twilio-video": "2.8.0-beta.2",
Additional context
It seems to unfreeze if you got to the android app switcher and select chrome.
The text was updated successfully, but these errors were encountered: