Francesco
Francesco

Reputation: 25239

Taking a picture from user's webcam a la Facebook

i didn't find a recent question so somethign might have changed:

there is any widget, ready to use, to integrate with my website in order for my users to take a picture of themselves ala Facebook when they register to my site? i guess is Flash/flex based

thanks

Upvotes: 1

Views: 1089

Answers (3)

Maksym Kozlenko
Maksym Kozlenko

Reputation: 10363

Add "accept" attribute to file upload control. It will launch photo application on phone. Tested with Google Chrome browser on Android platform.

<input type="file" id="fileupload" accept="image/*;capture=camera" />

Upvotes: 0

Yada
Yada

Reputation: 31225

Take a look at Userbooth. It uses actionscript and php. Opensource and it's free.

http://www.userbooth.com/

Upvotes: 2

Chad Udell
Chad Udell

Reputation: 189

don't know of a widget, but it's not too tough to write something like this... access the camera, save image to a bitmapdata object, use as3corelib to encode it to jpeg (http://github.com/mikechambers/as3corelib)and post it to your server using PHP or other middleware script.

This tutorial gets you pretty close to where you want to be: http:// www.adobe.com/devnet/air/ajax/quickstart/articles/jpeg_file_upload.html

If you don't want to write your own, you could always buy a component: http://www.buystockflash.com/Take-My-Picture-v1.0-/-WebCam/flash-animation-251.html

Upvotes: 3

Related Questions