Tastenkunst / brfv4_javascript_examples

BRFv4 - HTML5/Javascript - examples project. Reference implementation for all other platform example packages.
463 stars 148 forks source link

Doesn't work on iOS 11 yet? #9

Closed mrgoonie closed 6 years ago

mrgoonie commented 7 years ago

It seems doesn't work on Safari iOS 11, does it?

MarcelKlammer commented 7 years ago

It works kind of. On iPad Pro without any additional rendering going on (like ThreeJS or PNG overlay) it works with 30 FPS, so quite awesome. On iPhone 6 it doesn't really start, I thin they still have that bug, that getUserMedia needs to be started after a user input... not sure... Need to look into that at some point.

mrgoonie commented 7 years ago

Yea, all I can see on my iPhone 6s+ is a black canvas after pressing allow the camera permission popup

csalmeida commented 7 years ago

Rendering the grid upon face detection worked for me on Safari iOS. I did a few things in order to work:

Not sure how to make it more stable though. Great SDK!

MarcelKlammer commented 7 years ago

I tried it myself and was able to export a WebAssembly version which runs more smoothly. I also implemented a workaround for the freezing camera on iOS and the startup "bug" in iPhones:

https://tastenkunst.s3.amazonaws.com/demos/brfv4/test/index.html

It's not on Github yet. Will add that in the coming week or so.

csalmeida commented 7 years ago

Looking good, well done @MarcelKlammer! 🏅

I've tested this on a few devices:

MarcelKlammer commented 7 years ago

Thanks for testing Cristiano. All of this is to be expected IMHO.