Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2887] Android: Movie fails to render with "unable to open content error"

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-11-26T23:21:59.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M06, Release 3.2.0
ComponentsAndroid
Labelsandroid, defect, kicthensink, movie, qe-3.2.0, qe-testadded, regression, release-1.6.0, reported-1.6.0
ReporterThomas Huelbert
AssigneeAllen Yeung
Created2011-04-15T03:32:05.000+0000
Updated2014-03-18T09:14:50.000+0000

Description

Reproduces on device and in sim. Phone > Play Movie fails to show movie with "unable to open content error"

Phone > Play Movie

let it play

Results: no video shown, adb shows following errors: http://pastie.org/1478896

Attachments

FileDateSize
logs.txt2013-11-25T07:11:16.000+00003136
movie.mp42013-11-25T07:11:16.000+00002549211
TIMOB2887.txt2013-11-25T18:41:45.000+00002570

Comments

  1. Thomas Huelbert 2011-04-15

    works as expected in 1.5.1

  2. Marshall Culpepper 2011-04-15

    (from [11f5e27c2df7f89740aa4c95a41845f3f65a8efe]) don't compress certain image/audio/video types in the final APK. Apparently Android can't decompress them correctly
    [#2887 state:fixed-in-qa] [#2888 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/11f5e27c2df7f89740aa4c95a41845f3f65a8efe"> https://github.com/appcelerator/titanium_mobile/commit/11f5e27c2df7...

  3. Don Thorp 2011-04-15

    Verified on G1/1.6 and Nexus One/2.2.1 using build #e1cb22a

  4. Paras Mishra 2013-11-25

    I am able to reproduce this issue. This is regression, works fine on SDK: 3.1.3.GA Steps to reproduce: 1. Run the app below.
       var _window = Ti.UI.createWindow({
       	backgroundColor:'white'
       }); 
       var activeMovie1 = Titanium.Media.createVideoPlayer({
       			sourceType : Ti.Media.VIDEO_SOURCE_TYPE_FILE,
       			url : 'movie.mp4',
       			//backgroundColor : '#000',
       			scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT,
       			movieControlStyle : Titanium.Media.VIDEO_CONTROL_NONE
       		});
       
       
       
       		var activeMovie2 = Titanium.Media.createVideoPlayer({
       			sourceType : Ti.Media.VIDEO_SOURCE_TYPE_FILE,
       			url : 'movie.mp4',
       			//backgroundColor : '#000',
       			scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT,
       			mediaControlStyle : Titanium.Media.VIDEO_CONTROL_NONE
       		});
       
       		_window.add(activeMovie2);
       		
       _window.open();
       
       
    Paste movie.mp4 under Resources folder. Expected: Movie should play when running the app. Actual: Movie does not play, Logs are attached.
  5. Paras Mishra 2013-11-25

    Environment used: Device : Google Nexus 7, Android Version: 4.2.1 SDK: 3.2.0.v20131122172908 CLI version : 3.2.0-alpha OS : MAC OSX 10.9 1.3.0-alpha6 Appcelerator Studio, build: 3.2.0.201311221207 XCode : 5.0.2
  6. Samuel Dowse 2013-11-25

    Bug exists on: Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201311221859 Titanium SDK, build: 3.2.0.v20131122172908 CLI: 3.2.0-alpha Emulator: 2.3.3, 4.0.3 Device: Nexus One (4.1.1), Xperia Z (4.3) Using test case provided in comments and the attached movie. App opens but fails to run video with FileNotFoundException. Log attached as: TIMOB2887.txt
  7. Neha Mittal 2013-12-13

    Verified fixed using above code with environment: Appcelerator Studio: 3.2.0.201312121648 SDK: 3.2.0.v20131212122847 alloy: 1.3.0-cr acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-cr3 titanium-code-processor: 1.1.0-cr2 Device: Nexus 7(v4.2.1) and iPhone 5C iOS 7.0.4 Mac OSX 10.9 Mavericks Movie plays successfully without any error. Hence closing the issue.

JSON Source