cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Bau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-7800) media plugin issues in wp
Date Thu, 16 Oct 2014 13:32:34 GMT

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

Colin Bau updated CB-7800:
--------------------------
    Description: 
these are my all code

<a onClick="mytest()">TEST</a>

<script type="text/javascript">
function mytest() { var mediaRecord = null; mediaRecord = new Media('123.wav', onSuccess,
onError); mediaRecord.startRecord(); mediaRecord.stopRecord(); 
}

function onSuccess() { alert("success"); }
function onError(error) { alert("fail code:" + error.code + "\n" + "fail message:" + error.message);
}
</script>

=====
when I click "TEST"
[First time]:it will trigger the success callback but "repeat for three times"
[Second time]:it will trigger the success callback too but "repeat for six times"
[Third time]:it will trigger the success callback too but "repeat for nine times"

So...3....6...9...12...15
and only the first time that can really record the true voice
trust me,just copy my code and try for it

  was:
these are my all code

<a onClick="mytest()">TEST</a>

<script type="text/javascript">
function mytest() { var mediaRecord = null; mediaRecord = new Media('123.wav', onSuccess,
onError); mediaRecord.startRecord(); mediaRecord.stopRecord(); 
}

function onSuccess() { alert("success"); }
function onError(error) { alert("fail code:" + error.code + "\n" + "fail message:" + error.message);
}
</script>

=====
when I click "TEST"
[First time]:it will trigger the success callback but "repeat for three times"
[Second time]:it will trigger the success callback too but "repeat for six times"
[Third time]:it will trigger the success callback too but "repeat for nine times"

So...3....6...9...12...15
and only the first time that can really record the true voice


> media plugin issues in wp
> -------------------------
>
>                 Key: CB-7800
>                 URL: https://issues.apache.org/jira/browse/CB-7800
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>    Affects Versions: 3.6.3
>         Environment: phonegap 3.6.3 with all latest plugin
> ios 8.02
> winphone 8.1
> Android 4.42
> all real machine
>            Reporter: Colin Bau
>              Labels: media
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> these are my all code
> <a onClick="mytest()">TEST</a>
> <script type="text/javascript">
> function mytest() { var mediaRecord = null; mediaRecord = new Media('123.wav', onSuccess,
onError); mediaRecord.startRecord(); mediaRecord.stopRecord(); 
> }
> function onSuccess() { alert("success"); }
> function onError(error) { alert("fail code:" + error.code + "\n" + "fail message:"
+ error.message); }
> </script>
> =====
> when I click "TEST"
> [First time]:it will trigger the success callback but "repeat for three times"
> [Second time]:it will trigger the success callback too but "repeat for six times"
> [Third time]:it will trigger the success callback too but "repeat for nine times"
> So...3....6...9...12...15
> and only the first time that can really record the true voice
> trust me,just copy my code and try for it



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