Jump to content

webcam.js iphone/safari not supported?


moose-en-a-gant

Recommended Posts

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/

Link to comment
https://forums.phpfreaks.com/topic/294312-webcamjs-iphonesafari-not-supported/
Share on other sites

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?

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.