cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Khandelwal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-9486) On Android, when the recording is saved into the application's cache folder, the playback will fail.
Date Fri, 26 Feb 2016 20:15:18 GMT

     [ https://issues.apache.org/jira/browse/CB-9486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikhil Khandelwal updated CB-9486:
----------------------------------
    Labels: Android triaged  (was: )

> On Android, when the recording is saved into the application's cache folder, the playback
will fail.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CB-9486
>                 URL: https://issues.apache.org/jira/browse/CB-9486
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>         Environment: Android
>            Reporter: Szabolcs Balogh
>              Labels: Android, triaged
>
> When saving the recording, there is a condition to check where to save the file.
>  
> if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
>     file = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator
+ file;
> } else {
>     file = "/data/data/" + handler.cordova.getActivity().getPackageName() + "/cache/"
+ file;
> }
> but during playback it always tries to load the file from external storage (if there
is no full path specified).
> this.player.setDataSource(Environment.getExternalStorageDirectory().getPath() + "/" +
file);



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


Mime
View raw message