Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12739] iOS: Media - mp4 file is not recognized as a valid mime type

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-14T19:49:14.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsqe-sdk3.0.2
ReporterOlga Romero
AssigneeEric Merriman
Created2013-02-14T20:30:57.000+0000
Updated2017-06-14T19:49:14.000+0000

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

Comments

  1. Lee Morris 2017-06-14

    Closing ticket due to time passed and lack of progress in the past few years. Any problems, please file a new ticket.

JSON Source