cordova-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CB-6079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13911743#comment-13911743
] 

Andrew Grieve commented on CB-6079:
-----------------------------------

Filed a feature request for the WebView team for this: https://code.google.com/p/chromium/issues/detail?id=346718

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: 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)

Mime
View raw message