Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18815

iOS: Not able to store video in Gallery when captured directly from the app

    Details

    • Story Points:
      5
    • Sprint:
      2015 Sprint 09 SDK

      Description

      Reproduce Step:

      Simply run the test case in a classic project.

      app.js

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cng Chee Kiat Ng (Inactive)
                Reporter:
                sliang Shuo Liang
                Reviewer:
                Pedro Enrique (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-19856
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code