Titanium Community Questions & Answer Archive

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

Cannot call property takePicture

Hi,I have a problem while using function "Titanium.Media.takePicture();"

here is my code




but things goes wrong,it returned me a Runtime Error with
"Cannot call property takePicture in object ti.modules,titanium.media.MediaModule@44c996c0. It is not a function,it is "object""

is takePicture a property but not a function?how do i use it?

— asked September 18th 2010 by Wen Bin
  • camera
  • takepicture

1 Answer

  • No, it's a function. I'm not sure why it wouldn't work. I suggest just taking that out and letting the user take the picture him/her self?

    — answered September 19th 2010 by Colton Arabsky
    1 Comment
    • Hi Colton,there seems always something wrong with operate camrea,for example,I can only take PHOTO but no VIDEO using Titanium.Media.showCamera(),althought i have set "mediaTypes:Ti.Media.MEDIA_TYPE_VIDEO,",and the photo I take is always 320*240,and I can't change the quality.
      could you give me some advice?

      — commented September 19th 2010 by Wen Bin
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.