Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Webcam capture in a desktop app

Hey people. Going through the API docs for desktop development I realized there was no webcam capture method in the Titanium.Media class. Does anyone know a way around this? A python library perhaps (I'm a Js and Php coder so forgive that if it's a noob suggestion)? I don't want to resort to an AIR implementation although that would be trivial with actionscript. It's a barcode reading app with decoding being done server side. Any help would be greatly appreciated. Thanks in advance.

— asked August 22nd 2010 by Okal Otieno
  • camera
  • capture
  • desktop
  • webcam

2 Answers

  • There is no integrated API for this, but could you use flash maybe? I know flash is capable of using the webcam and saving it using php.

    — answered August 23rd 2010 by Bryce Wilkinson
  • Another option would be implementing a native module that could capture the images from the camera.
    This would be coded in C++ then loaded by your application. Most of the core Titanium APIs are implemented this way. There is not much documentation on native modules, but you could look at the Titanium Desktop repository to get an idea. Our premium support services could also help you further. If you have more questions feel free to contact us.

    — answered August 26th 2010 by Josh Roesslein
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.