You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Steve Gill (JIRA)" <ji...@apache.org> on 2013/10/08 01:38:42 UTC
[jira] [Updated] (CB-3800) Media release attempts to rename
tmprecording.3gp and fails
[ https://issues.apache.org/jira/browse/CB-3800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Gill updated CB-3800:
---------------------------
Assignee: (was: Steve Gill)
> Media release attempts to rename tmprecording.3gp and fails
> -----------------------------------------------------------
>
> Key: CB-3800
> URL: https://issues.apache.org/jira/browse/CB-3800
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Media
> Affects Versions: 2.8.0
> Environment: Android 4.1.2
> Reporter: Ron Meske
> Priority: Minor
>
> I am working with the Media API to create a simple audio recorder and everything is working, except when debugging I am seeing an error message when increasing my media object.
> I am not sure if this is a bug, intended, or something in my code that causes the issue.
> The code in question is one of two blocks both of which trigger the error:
> myRecmedia.stopRecord();
> myRecmedia.release();
> or
> mymedia.stop();
> mymedia.release();
> I separated the recording and playback into separate objects and call release to handle issues with crashing when calling play several times.
> When either myRecmedia.stopRecord() or mymedia.stop() is executed I see in the log that AudioPlayer generates a message "renaming /storage/sdcard/tmprecording.3gp to filename", where filename matches the filename I had passed when creating the media object. This seems to work fine.
> Then when myRecmedia.release() or mymedia.release() is executed I see in the log that AudioPlayer generates a message "FAILED renaming /storage.sdcard/tmprecording.3gp to filename"
> Is .release() suppose to trigger the AudioPlayer to rename the file?
--
This message was sent by Atlassian JIRA
(v6.1#6144)