Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2332] Saving Video to gallery produces crash on iOS

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:47.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsdefect, gallery, ios, ipad, iphone, photo
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T03:16:55.000+0000
Updated2011-04-17T01:58:47.000+0000

Description

Running on iOS 4.1 using latest 1.5 when saving a video to the photogallery produces a random crash. Sometimes it works, sometimes it doesn't.

Code:

Titanium.Media.showCamera({

success:function(event)
{
    var video = event.media;
    Titanium.Media.saveToPhotoGallery(video);
},
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

});

HD Ticket:
http://developer.appcelerator.com/helpdesk/view/46701">http://developer.appcelerator.com/helpdesk/view/46701

Comments

  1. Jeff Haynie 2011-04-15

    (from [737544df76c6853f05f47c172d34b90e26e15f3d]) [#2332 state:fixed-in-qa] I thought I put in this nil in case a second arg wasn't passed. Whoops. It's fixed now. https://github.com/appcelerator/titanium_mobile/commit/737544df76c6853f05f47c172d34b90e26e15f3d"> https://github.com/appcelerator/titanium_mobile/commit/737544df76c6...

  2. Thomas Huelbert 2011-04-15

    closed against KS save to gallery video test 1.5.0.8f4eea3 ipod touch 4GT (4.2.1)

  3. Don Thorp 2011-04-15

    Putting in 1.5.0 where it was fixed.

JSON Source