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

Saving Video to gallery produces crash on iOS

    Details

      Description

      {html}<div><p>Running on iOS 4.1 using latest 1.5 when saving a video to the
      photogallery produces a random crash. Sometimes it works, sometimes
      it doesn't.</p>
      <p>Code:</p>
      <pre>
      <code>Titanium.Media.showCamera({ success:function(event) { var video = event.media; Titanium.Media.saveToPhotoGallery(video); }, cancel:function() { },
      error:function(error)
      {
      // create alert
      var a = Titanium.UI.createAlertDialog({title:'Video'});

      // set message
      if (error.code == Titanium.Media.NO_VIDEO)
      { a.setMessage('Device does not have video recording capabilities'); }
      else
      { a.setMessage('Unexpected error: ' + error.code); }

      // show alert
      a.show();
      },
      mediaTypes: Titanium.Media.MEDIA_TYPE_VIDEO,
      videoMaximumDuration:10000,
      videoQuality:Titanium.Media.QUALITY_HIGH</code>
      </pre>
      <p>});</p>
      <p>HD Ticket:<br>
      <a href=
      "http://developer.appcelerator.com/helpdesk/view/46701">http://developer.appcelerator.com/helpdesk/view/46701</a></p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              blainhamon Blain Hamon
              Reporter:
              ctredway1 ctredway
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code