With approach 2 the issues is stability. I tried some examples, but I've managed to stop the camera from working (until a restart) on some devices and ...
stackoverflow.com