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

Ken Naito commented on CB-12849:
--------------------------------

I confirmed this issue.
In AudioPlayer.java, the following code does not work.

{code}
 if (!f.renameTo(new File(file))) LOG.e(LOG_TAG, "FAILED " + logMsg);
{code}

Because `renameTo` can not move file across partitions.

I would like to be assigned to this ticket.


> Media Plugin: Saves file not in indicated directory
> ---------------------------------------------------
>
>                 Key: CB-12849
>                 URL: https://issues.apache.org/jira/browse/CB-12849
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android, cordova-plugin-media
>    Affects Versions: 6.5.0
>         Environment: Device model: Nexus 5X
>  Android version of device: 8.1.0
>  Platform version: 7.1.0
>  Cordova version: 8.0.0
>  Cordova plugin media version: 5.0.1
>            Reporter: Florian Pechwitz
>            Priority: Major
>              Labels: cordova-plugin-media
>
> I tried to build an application which records, stops the recording and then 
> plays the recorded audio.
> The recording works fine but if I try to play the recorded audio I get error 
> code 1. I found out that the recorded audio file was not in the directory but 
> in a totally different directory 
> (/storage/emulated/0/(tmprecording-1495618229386.3gp) with a different file 
> name (tmprecording-1495618229386.3gp) and a different media type (video/3gpp) 
> as indicated.
> I created a repo with a example application for this issue: 
> https://github.com/Durzan666/cordova-plugin-media-demo



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to