You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "yiming kuan (Created) (JIRA)" <ji...@apache.org> on 2012/04/05 11:13:28 UTC

[jira] [Created] (CB-446) Enhance setting data source for local files in AudioPlayer

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

        

[jira] [Resolved] (CB-446) Enhance setting data source for local files in AudioPlayer

Posted by "Simon MacDonald (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald resolved CB-446.
--------------------------------

    Resolution: Fixed

Modified the fix so that the file does not need to be world readable. Thanks to Sam for the heads up.
                
> 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: Simon MacDonald
>            Priority: Trivial
>             Fix For: 1.6.0
>
>
> 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

        

[jira] [Resolved] (CB-446) Enhance setting data source for local files in AudioPlayer

Posted by "Simon MacDonald (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald resolved CB-446.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.6.0
         Assignee: Simon MacDonald  (was: Joe Bowser)

Media class will now support:

/android_asset/www/test.mp3
/data/data/com.package.name/test.mp3
../../data/data/com.package.name/test.mp3
/sdcard/test.mp3
test.mp3 -> becomes /sdcard/test.mp3

Anytime the Media class can't find the file passed in it will prepend /sdcard/ to it in order to try and play it.
                
> 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: Simon MacDonald
>            Priority: Trivial
>             Fix For: 1.6.0
>
>
> 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

        

[jira] [Commented] (CB-446) Enhance setting data source for local files in AudioPlayer

Posted by "Sam Krehnbrink (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Reopened] (CB-446) Enhance setting data source for local files in AudioPlayer

Posted by "Simon MacDonald (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald reopened CB-446:
--------------------------------


Privileges issue.
                
> 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: Simon MacDonald
>            Priority: Trivial
>             Fix For: 1.6.0
>
>
> 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