[TIMOB-4200] iOS - Edit mode on record video returns entire video
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Resolved |
Resolution | Hold |
Resolution Date | 2011-06-03T10:56:03.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Sprint 2011-22 |
Components | iOS |
Labels | camera, ios, look1 |
Reporter | Pedro Enrique |
Assignee | Reggie Seagraves |
Created | 2011-05-24T11:24:44.000+0000 |
Updated | 2017-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();
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.