Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4200] iOS - Edit mode on record video returns entire video

GitHub Issuen/a
TypeBug
PriorityMedium
StatusResolved
ResolutionHold
Resolution Date2011-06-03T10:56:03.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2011-22
ComponentsiOS
Labelscamera, ios, look1
ReporterPedro Enrique
AssigneeReggie Seagraves
Created2011-05-24T11:24:44.000+0000
Updated2017-03-13T21:24:59.000+0000

Description

With edit mode turned on for a recorded video the last step allows you to clip your video. However, the clipping is entirely ignored and the entire video is returned. Test Code:
var win = Ti.UI.createWindow();
var recordVideoButton = Titanium.UI.createButton({title: 'Record A Video', bottom: 3, height: 30});
var recordVideo = function(){			
	Titanium.Media.showCamera({
		allowEditing: true,
		mediaTypes: Titanium.Media.MEDIA_TYPE_VIDEO,
		videoQuality: Titanium.Media.QUALITY_LOW,
		success: function(e){
			var video = Titanium.Media.createVideoPlayer({
					autoplay: false ,
					top: 55,
					height: 180,		
					media: e.media,
					movieControlMode: Titanium.Media.VIDEO_CONTROL_DEFAULT,
			        movieControlStyle: Titanium.Media.VIDEO_CONTROL_EMBEDDED,
			        scalingMode: Titanium.Media.VIDEO_SCALING_ASPECT_FIT,
			        width: 240	        
			});
			win.add(video);
		}	
	});
};
recordVideoButton.addEventListener('click', recordVideo);
win.add(recordVideoButton);
win.open();

Comments

  1. Reggie Seagraves 2011-06-03

    This is not implementable using Apple's public APIs. The cropping information is returned to the client code using undocumented dictionary keys ("_UIImagePickerControllerVideoEditingEnd", "_UIImagePickerControllerVideoEditingStart") in the didFinishPickingMediaWithInfo dictionary.

JSON Source