views:

19

answers:

0

Hello,

I have recorded video in kitchensink(phone >>

save to gallery >> from video). After recording video it was give message "Check your photo gallery", but when I have open photo gallery(phone >> photo gallery) recorded video was not there.I am not getting why this was happened.Can any body help me?

when I recorded video through:

itanium.Media.showCamera({

success:function(event)
{
    var video = event.media;
    var thumbnail = event.thumbnail;

    Titanium.Media.saveToPhotoGallery(video);

    Titanium.UI.createAlertDialog({title:'Photo Gallery',message:'Check your photo gallery'}).show();       

},
cancel:function()
{

},
error:function(error)
{
    // 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');
    }
    else
    {
        a.setMessage('Unexpected error: ' + error.code);
    }

    // show alert
    a.show();
},
mediaTypes: Titanium.Media.MEDIA_TYPE_VIDEO,
videoMaximumDuration:10000,
videoQuality:Titanium.Media.QUALITY_HIGH

});

it is not available in photo gallery of my app. but it is only displayed in iphone's phtogallery why this was happened?