Titanium Mobile
  1. Titanium Mobile
  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}

        Activity

        Hide
        Jeff Haynie added a comment -
        {html}<div><p>(from <a href=
        "/projects/32238/changesets/737544df76c6853f05f47c172d34b90e26e15f3d"
        title=
        "Changeset [737544df76c6853f05f47c172d34b90e26e15f3d]">[737544df76c6853f05f47c172d34b90e26e15f3d]</a>)
        [<a href="/projects/32238/tickets/2332" title=
        "Ticket #2332">#2332</a> state:fixed-in-qa] I thought I put in this
        nil in case a second arg wasn't passed. Whoops. It's fixed now.
        <a href=
        "https://github.com/appcelerator/titanium_mobile/commit/737544df76c6853f05f47c172d34b90e26e15f3d">
        https://github.com/appcelerator/titanium_mobile/commit/737544df76c6...</a></p></div>{html}
        Show
        Jeff Haynie added a comment - {html}<div><p>(from <a href= "/projects/32238/changesets/737544df76c6853f05f47c172d34b90e26e15f3d" title= "Changeset [737544df76c6853f05f47c172d34b90e26e15f3d] "> [737544df76c6853f05f47c172d34b90e26e15f3d] </a>) [<a href="/projects/32238/tickets/2332" title= "Ticket #2332">#2332</a> state:fixed-in-qa] I thought I put in this nil in case a second arg wasn't passed. Whoops. It's fixed now. <a href= "https://github.com/appcelerator/titanium_mobile/commit/737544df76c6853f05f47c172d34b90e26e15f3d"> https://github.com/appcelerator/titanium_mobile/commit/737544df76c6 ...</a></p></div>{html}
        Hide
        Thomas Huelbert added a comment -
        {html}<div><p>closed against KS save to gallery video test 1.5.0.8f4eea3 ipod
        touch 4GT (4.2.1)</p></div>{html}
        Show
        Thomas Huelbert added a comment - {html}<div><p>closed against KS save to gallery video test 1.5.0.8f4eea3 ipod touch 4GT (4.2.1)</p></div>{html}
        Hide
        Don Thorp added a comment -
        {html}<div><p>Putting in 1.5.0 where it was fixed.</p></div>{html}
        Show
        Don Thorp added a comment - {html}<div><p>Putting in 1.5.0 where it was fixed.</p></div>{html}

          People

          • Assignee:
            Blain Hamon (Inactive)
            Reporter:
            ctredway
          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development