cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <>
Subject [jira] [Commented] (CB-6079) Android video mediaplayer error
Date Tue, 25 Feb 2014 17:22:27 GMT


Andrew Grieve commented on CB-6079:

Filed a feature request for the WebView team for this:

Work-arounds for now:
1. Write a ContentProvider that proxies the content of the video (ugh)
2. XHR the file into a Blob, convert the Blob into a URL via URL.createObjectURL(), load that
in <video> (works only on KitKat, but if you XHR an arraybuffer and user BlobBuilder,
then this should work back to ICS)
3. Use the File API or FileTransfer to copy the file to your app's private storage, and then
use the non-cdvfile: URL in the src ([~iclelland] going to add an API to convert a cdvfile://
-> file:// for this use-case)

> Android video mediaplayer error
> -------------------------------
>                 Key: CB-6079
>                 URL:
>             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

View raw message