cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "arliweng (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-3835) AudioPlayer - Playing audio - Renaming error
Date Sun, 27 Mar 2016 08:03:25 GMT

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

arliweng edited comment on CB-3835 at 3/27/16 8:02 AM:
-------------------------------------------------------

i have same problem, when i c the code i just want ask: r u real programer?

the problem is: i just play something, not record action, so that file not exist what u want
rename?

as an progamer, that known create the audiorecord inside startRecording(String file) if check
its null, but for now just create in the construct, even just want play some sound.. and call
rename the record file from stopRecording() by destroy! u may just move the 
[code]this.recorder = new MediaRecorder();[/code]
from https://github.com/apache/cordova-plugin-media/blob/master/src/android/AudioPlayer.java#L100
to 
https://github.com/apache/cordova-plugin-media/blob/master/src/android/AudioPlayer.java#L142

BTW 1: hope the play mode have option, so can play via COMMUNICATION channel not speaker,
use for example: voip application
BTW 2: i type Comment here, but i want change the Comment at preview i have click cancel,
the page return here but my Comment just disappeared.. so i type again and u known... >(=_=!)<
BTW 3: thank u for great project, its too simple way for my team.


was (Author: arliweng):
i have same problem, when i c the code i just want ask: r u real programer?

the problem is: i just play something, not record action, so that file not exist what u want
rename?

as an progamer, that known create the audiorecord inside startRecording(String file) if check
its null, but for now just create in the construct, even just want play some sound.. and call
rename the record file from stopRecording() by destroy! u may just move the 
[code]this.recorder = new MediaRecorder();[/code]
from https://github.com/apache/cordova-plugin-media/blob/master/src/android/AudioPlayer.java#L100
to 
https://github.com/apache/cordova-plugin-media/blob/master/src/android/AudioPlayer.java#L142

BTW 1: hope the play mode have option, so can play via COMMUNICATION channel not speaker,
use for example: voip application
BTW 2: i type Comment here, but i want change the Comment at preview i have click cancel the
page return here but my Comment just disappeared.. so i type again and u known... >(=_=!)<
BTW 3: thank u for great project, its too simple way for my team.

> AudioPlayer - Playing audio - Renaming error
> --------------------------------------------
>
>                 Key: CB-3835
>                 URL: https://issues.apache.org/jira/browse/CB-3835
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>    Affects Versions: 2.7.0, 2.8.0, 2.9.0
>         Environment: PhoneGap + jQuery Mobile 1.3.x + Android 2.3.x and higher
>            Reporter: Joram Teusink
>            Priority: Minor
>              Labels: audioplayer, media, tmprecording.3gp
>
> When playing a media file (audio) from a url with AudioPlayer I get the following error
in the console (logcat):
> - AudioPlayer : Send a onStatus update for the new seek
> - AudioPlayer : renaming /storage/emulated/0/tmprecording.3gp to /storage/emulated/0/http://...<rest
of url>
> - AudioPlayer : FAILED renaming /storage/emulated/0/tmprecording.3gp to /storage/emulated/0/http://...<rest
of url>
> The code is the same as in de demos in the PhoneGap docs.
> No errors in the app and playback works fine. And I noticed that in the root of the sdcard
a tmprecording.3gp file was created. But did not see that one coming back after deletion.



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