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

Andrew Grieve commented on CB-6003:
-----------------------------------

I think the cause of this is a poor design of the Media plugin.
It currently doesn't interpret the src argument as a URL, and instead as a 
relative path to platform-specific roots. I think the original reason was so 
that it could record to a writable location easily. Not sure if there's a good 
way to fix this without just breaking the API. 

That said, I'd be in favour of breaking the API, doing a major version bump, 
and treating src as a URL. For recording, users can use 
requestLocalFileSystem() to get writable URLs for recording.

> Cant play files from the assets folder Android
> ----------------------------------------------
>
>                 Key: CB-6003
>                 URL: https://issues.apache.org/jira/browse/CB-6003
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>         Environment: Android
>            Reporter: cesine
>              Labels: audio
>
> I've been trying to pin this down. 
> I think this commit brings me to conclude something is odd with playing audio 
> from assets on android. 
> https://github.com/cesine/TestingCordovaAudio/commit/9556fd523f68c6ec2f4659b9476f3e39a3199c33
>  The same audio file plays fine
> * if its played from a http:// url
> * if its played in Native Android
> Tested with Android 4.3, I would be ecstatic if it was just my tablet but I 
> dont have any others to test with right now... 
> {code}
> $ cordova --version
> 3.3.1-0.1.2
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to