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

iOS: Media - mp4 file is not recognized as a valid mime type

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      Titanium Studio, build: 3.0.2.201302081641
      Titanium SDK, build: 3.0.2.v20130207164659
      CLI 3.0.24-cr
      iOS 6.0 Simulator
      Devices:
      iPhone4 iOS 5.1.1
      iPad mini iOS 6.0.2

      Description

      It is not a regression, same behavior in 3.0.0.GA
      Test steps:
      Run this code and check Photo gallery for .mp4 video file

      //var mp4_path  = 'http://www.eyejot.com/mediabits?t=4&u=davidg&g=0E15E94BE83D150000404089CD&f=3424725A1718F2FFFFCDAE1066'
      var mp4_path = 'http://www.mp4point.com/downloads/f4f0ea5981b3.mp4'
      //var mp4_path = 'http://daily3gp.com/vids/747.3gp';
      Ti.API.info('set path');
      //var mp4_path  = 'http://images.developercenter.appcelerator.com.s3.amazonaws.com/support-admin_logo_graphic.png'
       
      download_xhr = Ti.Network.createHTTPClient();
      Ti.API.info('set client');
      download_xhr.onload = function(e) {
          Ti.API.info('lets save the file');
          Titanium.Media.saveToPhotoGallery(this.responseData, {
              success: function(e) {
                  Ti.API.info("SUCCESS!");
              },
              error: function(e) {
                  Ti.API.info("GALLERY ERROR: "+e.error);
              }
          });
      };
       
      download_xhr.onerror = function(e) {
          Logger.log ('[gallery_test:downloadMessage] onerror');
          return;
      };
       
      download_xhr.open ('GET', mp4_path);
      Ti.API.info('ran open');
      download_xhr.send();
      Ti.API.info('ran send');
      

      Actual result:
      No Errors in the log and no movie in the Photo stream

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                emerriman Eric Merriman
                Reporter:
                oromero Olga Romero
                Reviewer:
                Eric Merriman
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration