You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2015/09/01 00:44:45 UTC
[jira] [Updated] (CB-9555) Media plugin should hide details of
filesystem access
[ https://issues.apache.org/jira/browse/CB-9555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser updated CB-9555:
---------------------------
Priority: Minor (was: Major)
> Media plugin should hide details of filesystem access
> -----------------------------------------------------
>
> Key: CB-9555
> URL: https://issues.apache.org/jira/browse/CB-9555
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, CordovaJS
> Reporter: Thomas Hunter II
> Priority: Minor
>
> When using the Media plugin to play music from the local filesystem, one can simply load the path to media files relative to the www/ directory on iOS, e.g.:
> {noformat}new Media('audio/file.wav');{noformat}
> However, when using Android, one needs to prefix the path with a string (a string which is not mentioned in the documentation):
> {noformat}new Media('/android_asset/www/audio/file.wav');{noformat}
> This is of course a very leaky abstraction. Regardless of the platform Cordova runs on, one should be able to use the same path for playing audio.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org