[TIMOB-2332] Saving Video to gallery produces crash on iOS
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:47.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | defect, gallery, ios, ipad, iphone, photo |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T03:16:55.000+0000 |
Updated | 2011-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
(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...
closed against KS save to gallery video test 1.5.0.8f4eea3 ipod touch 4GT (4.2.1)
Putting in 1.5.0 where it was fixed.