You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ron Meske (JIRA)" <ji...@apache.org> on 2013/06/13 22:35:20 UTC

[jira] [Created] (CB-3800) Media release attempts to rename tmprecording.3gp and fails

Ron Meske created CB-3800:
-----------------------------

             Summary: 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
            Assignee: Steve Gill
            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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira