Web cam and other hardware access

219 views
Skip to first unread message

Aleister Matovu

unread,
Aug 6, 2012, 6:16:58 AM8/6/12
to mi...@dartlang.org
Hi guys,

I have always hated Javascript and knew that a language like this will come up once and it did. I have seen and tried dart out for about a day or two so I am not yet familiar with it that much. My question is, Is there a way I can access the web cam to take pictures or any other hardware stuff with Dart from the browser?

Thank you

Gen

unread,
Aug 6, 2012, 11:47:01 AM8/6/12
to mi...@dartlang.org
I have not yet tried to access a webcam myself but this website is one of the best I know:
 
In particular I suggest to read this article:
Another great article from Eric Bidelman.
 
Then try if the dart:html API supports the corresponding media interface.
 
Best regards

Seth Ladd

unread,
Aug 6, 2012, 11:51:58 AM8/6/12
to Aleister Matovu, mi...@dartlang.org
(this time, to the whole list)

Hi Aleister,

Thanks for checking out Dart! You're probably looking for getUserMedia(), the new HTML5 API that gives you access to camera and microphone. The new stable of Chrome just launched with support for getUserMedia. This article from HTML5 Rocks is a good place to start.

I haven't tried it, but I see a webkitGetUserMedia here: http://api.dartlang.org/docs/continuous/dart_html/Navigator.html#webkitGetUserMedia  Also, you might want to star http://code.google.com/p/dart/issues/detail?id=4370 to get a new unprefixed method.

Please do give it a try and let us know how it goes!

Thanks,
Seth


--
Consider asking HOWTO questions at Stack Overflow: http://stackoverflow.com/tags/dart
 
 

Reply all
Reply to author
Forward
0 new messages