pascal_22 Posted September 4, 2013 Share Posted September 4, 2013 Hello! I have a website that users can upload their pictures. Actually, i have a flash version, and another jquery upload and another traditional form upload... I want to let user to upload photo from their webcam or their smartphone? Do you have a hint for me? Thanks Pascal Quote Link to comment https://forums.phpfreaks.com/topic/281853-let-user-to-take-picture-from-webcamsmart-phone/ Share on other sites More sharing options...
Psycho Posted September 4, 2013 Share Posted September 4, 2013 I don't believe there is any way to have the browser interact with the hardware on the user's system/device as it would create a security risk. I believe you would have to create a Java applet that the user would have to install to do this. Quote Link to comment https://forums.phpfreaks.com/topic/281853-let-user-to-take-picture-from-webcamsmart-phone/#findComment-1448152 Share on other sites More sharing options...
pascal_22 Posted September 4, 2013 Author Share Posted September 4, 2013 Ok! I just see that taditional upload form let user chose to take a new picture or select an existing picture for mobile and smart phone... Now for webcam, do you suggest me to did it in flash or java? I see on the web some tuto with jquery and flash! thanks! Quote Link to comment https://forums.phpfreaks.com/topic/281853-let-user-to-take-picture-from-webcamsmart-phone/#findComment-1448153 Share on other sites More sharing options...
Psycho Posted September 4, 2013 Share Posted September 4, 2013 Ok! I just see that taditional upload form let user chose to take a new picture or select an existing picture for mobile and smart phone... On the smart phones where you see the option to take a new picture are you sure you are looking at a web page and not a mobile App? Now for webcam, do you suggest me to did it in flash or java? I see on the web some tuto with jquery and flash! A Java applet would have to be installed, which many users would probably not choose to do. If you can accomplish this with Flash - and nothing additional to install by the user, except the Flash install, then I'd go that route. Quote Link to comment https://forums.phpfreaks.com/topic/281853-let-user-to-take-picture-from-webcamsmart-phone/#findComment-1448156 Share on other sites More sharing options...
pascal_22 Posted September 4, 2013 Author Share Posted September 4, 2013 Hi! Sorry! for your first quote... i mean, when i click on 'browse' button in a webpage that we can upload image... on the mobile, i have the choice to select an existing image or take a pic for the camera!! For your second quote... you right but flash doesn't work on apple device(iphone,ipad...) thnaks a have a great day! Pascal Quote Link to comment https://forums.phpfreaks.com/topic/281853-let-user-to-take-picture-from-webcamsmart-phone/#findComment-1448158 Share on other sites More sharing options...
.josh Posted September 4, 2013 Share Posted September 4, 2013 yes, you can have a form field to select an existing image (file) on the phone and upload it. Quote Link to comment https://forums.phpfreaks.com/topic/281853-let-user-to-take-picture-from-webcamsmart-phone/#findComment-1448163 Share on other sites More sharing options...
Psycho Posted September 4, 2013 Share Posted September 4, 2013 Sorry! for your first quote... i mean, when i click on 'browse' button in a webpage that we can upload image... on the mobile, i have the choice to select an existing image or take a pic for the camera!! Hmm, can you provide a site where you see this? If it does work it is likely default functionality by the device and not something implemented in the web site. May only apply to Apple or Android or even browser specific. Quote Link to comment https://forums.phpfreaks.com/topic/281853-let-user-to-take-picture-from-webcamsmart-phone/#findComment-1448171 Share on other sites More sharing options...
kicken Posted September 5, 2013 Share Posted September 5, 2013 My android phone seems to provide the option to take a picture (or several other things) for file inputs. This is definitely something that would be device/browser specific and not something you have control over. For desktop browser, there is a new JS API called getUserMedia that can be used to access a users webcam/microphone. You could look into doing something with that, however support is a bit lacking still last time I played with it. As far as I am aware, flash provides the ability to access the webcam and mic as well, but I don't know anything about how it would actually be accomplished. Quote Link to comment https://forums.phpfreaks.com/topic/281853-let-user-to-take-picture-from-webcamsmart-phone/#findComment-1448212 Share on other sites More sharing options...
QuickOldCar Posted September 5, 2013 Share Posted September 5, 2013 Check this out to take a picture from a webcam. http://tutorialzine.com/2011/04/jquery-webcam-photobooth/ Quote Link to comment https://forums.phpfreaks.com/topic/281853-let-user-to-take-picture-from-webcamsmart-phone/#findComment-1448239 Share on other sites More sharing options...
pascal_22 Posted September 5, 2013 Author Share Posted September 5, 2013 thanks a lot!!! i appreciate! Quote Link to comment https://forums.phpfreaks.com/topic/281853-let-user-to-take-picture-from-webcamsmart-phone/#findComment-1448315 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.