Titanium Community Questions & Answer Archive

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

showCamera can only take PHOTO but no VIDEO

Hi,I've got a problem while using "Titanium.Media.showCamera"
here's the code:

    success: function(event){
        var video = event.media;
        movieFile = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,'mymovie.mov');
        // create alert
        var a = Titanium.UI.createAlertDialog({title:'Video'});

        // set message
        if (error.code == Titanium.Media.NO_VIDEO){
            a.setMessage('Device does not have video recording capabilities');
            a.setMessage('Unexpected error: ' + error.code);
    mediaTypes: Titanium.Media.MEDIA_TYPE_VIDEO,

I can still using my camera to take Picture but no Video,and the "mediaTypes" has been set to "Titanium.Media.MEDIA_TYPE_VIDEO"

why and what can i do to take video?

— asked September 16th 2010 by Wen Bin
  • shwocamera
  • video
1 Comment
  • I am also having the same problem i have the kitchen sink installed on my android phone and it have no way to record video only take a photo???

    — commented January 5th 2014 by Samuel East

1 Answer

  • Check out the file "camera_video.js" in the Resources/examples folder of the latest Kitchen Sink code. It contains a fairly complete working example of the code. There is a lot of un-documented or incomplete code in this area of functionality, even up to version 1.7.2 of the SDK.

    — answered September 4th 2011 by Mark Pemburn
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.