moose-en-a-gant Posted February 2, 2015 Share Posted February 2, 2015 I tried both of these articles, I have a windows 8.1 tablet and both of the different "codes" worked but I tried my friend's iPhone and the camera viewport is just a black square or doesn't show at all... the problem seems to be that the pop up where you push "allow" or "deny" doesn't show up at all, this makes me think the trigger isn't "triggered". These are the sites I'm using HTML5 and Javascript, didn't do much modifcation yet, I just needed the basic web cam access, cropping, saving functions at the moment. http://davidwalsh.name/browser-camera http://mycodingtricks.com/javascript/webcam-api/ Quote Link to comment https://forums.phpfreaks.com/topic/294312-webcamjs-iphonesafari-not-supported/ Share on other sites More sharing options...
moose-en-a-gant Posted February 2, 2015 Author Share Posted February 2, 2015 I have a follow up question, if an uploads folder only has webcam upload eg. a photo directly from a webcam, is it safe to use a permission like 777 or should I stick with 766? What about a folder where photos are uploaded from anywhere except the webcam? Quote Link to comment https://forums.phpfreaks.com/topic/294312-webcamjs-iphonesafari-not-supported/#findComment-1504590 Share on other sites More sharing options...
scootstah Posted February 3, 2015 Share Posted February 3, 2015 After a quick Google I found this: http://jsfiddle.net/2wZgv/ It seems to work on Android, but I don't have an iOS device to test. For your other question, generally you want to use the strictest permissions possible. 777 means that any user on the system can read/write/execute. Does every user need to be able to do that? No, not in most cases. Usually, only the Apache user needs only read+execute permissions on directories, and read permissions on files. Obviously if you want to be able to write within a directory then you will need write access, and/or if you want to write to a specific file you'll need write access to that file. But only the Apache user needs it. There are some exceptions, like if you're running CLI scripts or CRON jobs or something. Quote Link to comment https://forums.phpfreaks.com/topic/294312-webcamjs-iphonesafari-not-supported/#findComment-1504642 Share on other sites More sharing options...
moose-en-a-gant Posted February 3, 2015 Author Share Posted February 3, 2015 Quick helped me with the file upload, using the "browse file" eg. input type="file" method, what I'm looking for is the webcam access which I got to work with a Windows 8.1 Tablet I'll have to look into this more, god things all over the place Quote Link to comment https://forums.phpfreaks.com/topic/294312-webcamjs-iphonesafari-not-supported/#findComment-1504668 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.