-
Notifications
You must be signed in to change notification settings - Fork 535
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
Canvas video stream freezes on mobile safari #14
Comments
Thank you for this detailed bug report. Fortunately I can reproduce it on my ipad pro, it freezes perfectly well ! I will fix it today. |
Awesome 👍, thanks @xavierjs. |
If helpful, I did notice when I refreshed a few times, 1 out of every few ended up not freezing. Seems like a timing issue. |
This bug was pretty hard... This is a problem with IOS. |
I have pushed the modif and it works for me with Ipad pro (I tried with Safari in private navigation to avoid any browser cache problem). I hope it will work for you too ! |
Taking a look now. Will report. |
Works great! Thanks for the fix. 🚀 |
Actually i am trying it in tensorflow JS, in there i am facing same freezing issue. Thank you. |
It may be due to the GPU. I had a similar issue with an old laptop, the GPU was overheating and it triggered thermal throttling. I don’t use tensorslow and face filter does not rely on it, but I know that tensorflow.js uses WebGL too to run. |
@ashique12009 Greetings! I just fixed this issue in my app. In my app, all iOS devices had problems with freezing video or black screen video; I was using the video stream from the device's rear (environment) camera. The solution to the problem was to make sure the |
I have reopened the issue and pinned it since it seems to be still a real problem. If you let the lib to request the video (like in the boilerplate and most of the included demos), then we will test if it is an apple device (Safari on IOS or desktop). If yes, we append the
It is dirty but it seems to work... |
add playsinline on video tag like this "" looks good to me, i notice that my video wasn't appearing n playing in any browsers on iphone. except, including playsinline on the tag. I believe this is the cause of the problem. |
Describe the bug
iPhone 7 and 8 for mobile safari face tracking seems to be broken.
Specifically, if you look at the 2d face paint demo, the canvas loads, shows the first few images, then freezes. Console shows the following error:
WebGL: INVALID_OPERATION: texImage2D: type HALF_FLOAT_OES but ArrayBufferView is not NULL
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I'd except the video stream / canvas to not freeze while tracking face. It works properly on desktop and android mobile.
Screenshots
n/a
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: