Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18815] iOS: Not able to store video in Gallery when captured directly from the app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-04-30T16:05:10.000+0000
Affected Version/sRelease 3.5.0, Release 3.5.1
Fix Version/sRelease 4.0.0, Release 4.1.0
ComponentsiOS
Labelscamera, gallery, video
ReporterShuo Liang
AssigneeChee Kiat Ng
Created2015-04-09T02:07:15.000+0000
Updated2015-05-04T20:39:33.000+0000

Description

Reproduce Step:

Simply run the test case in a classic project.
Ti.UI.backgroundColor = 'white';
var win = Ti.UI.createWindow({});

var button = Ti.UI.createButton({
	top: 100,
	left: 30,
	title: "Show Camera",
});
button.addEventListener("click", function(){
	Titanium.Media.showCamera({
		success:function(event) {
 			// called when media returned from the camera
			Ti.API.info('showCamera: ' + JSON.stringify(event));
			if (event.mediaType == Ti.Media.MEDIA_TYPE_VIDEO) {
				
				alert("Video saved");
			}
		},
		cancel:function() {
 			alert("cancelled Camera!");
		},
		error:function(error) {
			var a = Titanium.UI.createAlertDialog({title:'Camera'});
 			if (error.code == Titanium.Media.NO_CAMERA) {
				a.setMessage('Please run this test on device');
			} else {
				a.setMessage('Unexpected error: ' + error.code);
			}
			a.show();
		},
		saveToPhotoGallery:true,
		allowEditing : true,
		mediaTypes : [Ti.Media.MEDIA_TYPE_VIDEO]
	});
});

win.add(button);
win.open();

Expect Result:

Video should save into gallery, like a picture.

Actual Result:

Console log shows the camera saved. But can't find it in gallery.

Comments

  1. Ingo Muschenetz 2015-04-13

    Is this a regression? Did this used to work in a previous version.
  2. Chee Kiat Ng 2015-04-30

    Master PR: https://github.com/appcelerator/titanium_mobile/pull/6814 4_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/6815
  3. Ewan Harris 2015-05-04

    Verified using: Mac OSX 10.10.3 Titanium SDK build: 4.0.0.v20150430090209 Appc CLI (NPM): 0.3.55 Appc CLI (Registry): 0.2.279 Using the attached code the video is now saved to the gallery as expected Closing ticket

JSON Source