[
https://issues.apache.org/jira/browse/CB-6079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13911492#comment-13911492
]
Joe Bowser commented on CB-6079:
--------------------------------
No, it must be played from the SDCard or from the App's Data Directory. NOT
from the Assets directory.
The assets directory is an alias to the APK. An APK is like a JAR file, it's a
special type of ZIP file that has the application's classes in it, as well as
its resources and assets. For any file to be accessed from the assets, it must
be decompressed. This is trivial for files that aren't video, but apparently
due to the nature of video files, Android isn't able to decompress these files
and play them. Therfore all video files must be stored on the real file system
somewhere, and not in the APK. The more you abstract the URI, the worse things
get w.r.t the HTML5 Video tag not being able to read the file.
> Android video mediaplayer error
> -------------------------------
>
> Key: CB-6079
> URL: https://issues.apache.org/jira/browse/CB-6079
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 3.3.0
> Environment: OSX 10.8.5, Android Developer Tools
> Reporter: Arnout
> Labels: Android, Video
> Fix For: 3.3.0
>
>
> I have a project with HTML5 video playback.
> On iOS everything works great, but if I build the same project for Android
> the video doesn't want to play.
> This is the error I get in LogCat: "Mediaplayer Error (1, -2147483648)".
> I tried to play the video with another plugin but without result.
> Installed platforms: android 3.3.0, ios 3.3.0
> Installed plugins:
> jaeger.Html5Video',
> 'org.apache.cordova.device',
> 'org.apache.cordova.file',
> 'org.apache.cordova.inappbrowser'
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)