Headshot - Easy web cam integration for Ruby on Rails

591 views
Skip to first unread message

Diwa del Mundo

unread,
Jan 12, 2013, 11:00:46 AM1/12/13
to Philippine Ruby Users Group (PRUG/PhRUG), singap...@googlegroups.com
Hey Everyone,

Sorry for the shameless promotion, I just want to share my gem called Headshot that will allow you to capture your users' photos with minimal effort. It might be useful for some of your projects.

---

Documentation / Demo:

http://headshot.hypermediasoft.com

Github:

https://github.com/diwadm/headshot

Code (View):

<%= headshot_default_config(Rails.application.config.session_options[:key], headshot_capture_path) %>

<%= headshot_camera %>

<%= headshot_snap_button('Shoot') %>

---

Comments and suggestions are appreciated.

Regards,

Diwa

Paul Gallagher

unread,
Jan 12, 2013, 11:07:27 AM1/12/13
to Singapore Ruby Brigade
Cool stuff! 

Have you thought about also adding/trying a pure HTML5 approach? I'm not sure how good the support is yet for it to be viable in real usage though (http://www.html5rocks.com/en/tutorials/getusermedia/intro/)



--
You received this message because you are subscribed to the Google Groups "Singapore Ruby Brigade" group.
To post to this group, send email to singap...@googlegroups.com.
To unsubscribe from this group, send email to singapore-rb...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/singapore-rb?hl=en.

Diwa del Mundo

unread,
Jan 12, 2013, 11:51:06 AM1/12/13
to singap...@googlegroups.com
Hi Paul,

Thanks! Yes, I've thought of using an HTML5 approach. However, I find that most browsers don't support the getUserMedia() API yet so it might not be ready for real usage. I believe it only works reliably on Chrome for now. It will certainly change on the next several months as browser developers improve support for it.

For older browsers, Flash seems to be the way to go for now. I see that there will be bridging JS frameworks for media capture, similar to HTML5 video player frameworks like video.js, that will provide a consistent API for accessing media devices using HTML5 media capture API and will degrade to Flash if the user's browser doesn't support the newer APIs.

--
Dave del Mundo

Boon Kiat, Han

unread,
Jan 12, 2013, 12:07:41 PM1/12/13
to singap...@googlegroups.com
agree
on top, I believe the Flash runtime is steeply on the way out, even on desktops as HTML5 fires up
but for certain clients, this gem should be a peachy enhancement to their current getup

getUserMedia(not the whole WebRTC suite) isn't a very huge API ,,, I'm definitely using it and believe it will be generally available by 2014
I honestly see people should get in with their own custom code

I think samples abound... but no dominant library yet??


BK


From: Paul Gallagher <gallagh...@gmail.com>
To: Singapore Ruby Brigade <singap...@googlegroups.com>
Sent: Sunday, January 13, 2013 12:07 AM
Subject: Re: [SRB] Headshot - Easy web cam integration for Ruby on Rails

Meng Weng Wong

unread,
Jan 12, 2013, 12:11:21 PM1/12/13
to singap...@googlegroups.com, Philippine Ruby Users Group (PRUG/PhRUG)
On 13 Jan, 2013, at 12:00 AM, Diwa del Mundo <diw...@gmail.com> wrote:

Sorry for the shameless promotion

If you are sorry, then you are not being shameless.


Reply all
Reply to author
Forward
0 new messages