On my PHP-based (Joomla!) site users should be able to provide a photo of themselfes and provide some comments to it (e.g. Name). This file along with the comment should then be stored on the server. The user should simply be able to do this either by uploading a file or by taking a picture with their webcam directly on my site. I like the way Facebook has solved the user interface for t开发者_如何转开发hat. Is there a free (or cheap) component (I suppose it needs to be done with flash?) that I can intergrate into my PHP site?
I don't know if there are any free and useful webcam applets out there. I ended up writing my own. Getting an image from a webcam is not really hard in flash. I then use PNGEncoder (com.adobe.images.PNGEncoder) from adobe itself to convert the bitmap data into a PNG images (by default flash does bitmaps only and those are way to big to upload). I end up with an URLLoader to post it to my site.
I got some wisdom from this url: http://marstonstudio.com/?p=36
- jpegcam
- webcamsnapper
similar question Flash Photo Uploader - Take photo from web cam
精彩评论