Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1142] Videos in Photo Gallery

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:19.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsdefect, feature, gallery, ios, iphone, photo
ReporterRalf Pfeiffer
AssigneeBlain Hamon
Created2011-04-15T02:45:04.000+0000
Updated2011-04-17T01:55:19.000+0000

Description

We need to expose videos when the openPhotoGallery method is called. Right now, only photos are exposed.

Titanium.Media.openPhotoGallery({

success:function(event)
{
    var cropRect = event.cropRect;
    var image = event.media;

    // set image view
    imageView.image = image;

    Titanium.API.info('PHOTO GALLERY SUCCESS cropRect.x ' + cropRect.x + ' cropRect.y ' + cropRect.y  + ' cropRect.height ' + cropRect.height + ' cropRect.width ' + cropRect.width);

},
cancel:function()
{

},
error:function(error)
{
},
allowImageEditing:true,

});

Comments

  1. Cyo 2011-04-15

    I opened a ticket here
    https://appcelerator.lighthouseapp.com/projects/32238/tickets/1121-android-video-gallery-upload#ticket-1121-1"> https://appcelerator.lighthouseapp.com/projects/32238/tickets/1121-...

    But i think it was implemented on iphone. I only test with iphone simulator, not device. It's really strange because i saw in titanium source code that it is implemented for iphone.

    It really annoy me because i develop an application for an enterprise and if this functionality doesn't exist, i should have to give up Titanium. Could you make the best to implement that quickly ?

  2. Nolan Wright 2011-04-15

    this is actually a code issue, set

    mediaTypes:[Ti.Media.MEDIA_TYPE_VIDEO,Ti.Media.MEDIA_TYPE_PHOTO]

JSON Source