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

Sam Krehnbrink commented on CB-446:
-----------------------------------

Please consider the Android filesystem conventions which typically do not 
include the 'sdcard' prefix.  

External/Public/Temporary storage location:

/Android/data/<package_name>/files/

Internal/Private/Persistent storage location:

/data/data/<package_name>/


The current workaround to use the Media object for Android is to prefix the 
file path with "../..".  This is used to account for the hardcoded path 
("/mnt/sdcard") used by the Media object.
                
> Enhance setting data source for local files in AudioPlayer
> ----------------------------------------------------------
>
>                 Key: CB-446
>                 URL: https://issues.apache.org/jira/browse/CB-446
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: Android
>    Affects Versions: 1.5.0
>            Reporter: yiming kuan
>            Assignee: Joe Bowser
>            Priority: Trivial
>
> When playing local files on Android, if the audio file is not in the assets 
> the folder automatically assigns the '/sdcard/' prefix to the filepath. This 
> should be made dynamic (i.e. '/sdcard/' prefix only added if the filepath 
> does not already start with '/mnt/sdcard/' or 'sdcard'.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to