[TIMOB-2887] Android: Movie fails to render with "unable to open content error"
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-11-26T23:21:59.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.6.0 M06, Release 3.2.0 |
| Components | Android |
| Labels | android, defect, kicthensink, movie, qe-3.2.0, qe-testadded, regression, release-1.6.0, reported-1.6.0 |
| Reporter | Thomas Huelbert |
| Assignee | Allen Yeung |
| Created | 2011-04-15T03:32:05.000+0000 |
| Updated | 2014-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/1478896Attachments
| File | Date | Size |
|---|---|---|
| logs.txt | 2013-11-25T07:11:16.000+0000 | 3136 |
| movie.mp4 | 2013-11-25T07:11:16.000+0000 | 2549211 |
| TIMOB2887.txt | 2013-11-25T18:41:45.000+0000 | 2570 |
works as expected in 1.5.1
(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...
Verified on G1/1.6 and Nexus One/2.2.1 using build #e1cb22a
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.
Paste movie.mp4 under Resources folder. Expected: Movie should play when running the app. Actual: Movie does not play, Logs are attached.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();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
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
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.