Closed ChenMoGe2 closed 2 years ago
It's OK for Vivo IQOO NEO 3 Android 11,but not working on Oneplus 7 Pro Android 9.
@sgowroji Yes,it can run on chrome,but not on my own webview.I think the problem reason is External camera of Oneplus like below:
All phones which use internal camera are OK.
I'm assuming there are no errors being printed out to the JavaScript Console? In any case, for a mobile phone, 1280x720 are probably not the dimensions you want to request a camera stream at; perhaps try 480x640 instead and see if that helps?
Otherwise, it would be useful to see what differences are between cameras that work and cameras that fail-- see if you can save images from both types of camera, and then you can compare those images for differences (you'll probably need to write your own quick JS/TS camera code for this, and not use our "Camera" helper).
You can also then replay those images back into faceMesh (faceMesh.send() accepts HTMLVideoElement, ImageBitmap, HTMLImageElement, and HTMLCanvas inputs) so you can test the images directly one frame at a time.
@tyrmullen OK I will try it
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.
Closing as stale. Please reopen if you'd like to work on this further.
I used javascript demo to run on the android webview,but I can just see the camera video but not face mesh video.
Env: Android:Oneplus 7 Pro,Android 9
like this:
but It can play face mesh on chrome android
the webview code
The webview code(I download all js to local file)