File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,29 @@ How to use:
28
28
var recorder = new Object ;
29
29
recorder .stop = function () {
30
30
window .plugins .audioRecorderAPI .stop (function (msg ) {
31
+ // success
31
32
alert (' ok: ' + msg);
32
33
}, function (msg ) {
34
+ // failed
33
35
alert (' ko: ' + msg);
34
36
});
35
37
}
36
38
recorder .record = function () {
37
- window .plugins .audioRecorderAPI .stop (function (msg ) {
39
+ window .plugins .audioRecorderAPI .record (function (msg ) {
40
+ // complete
38
41
alert (' ok: ' + msg);
39
42
}, function (msg ) {
43
+ // failed
40
44
alert (' ko: ' + msg);
41
45
}, 30 ); // record 30 seconds
42
46
}
47
+ recorder .playback = function () {
48
+ window .plugins .audioRecorderAPI .playback (function (msg ) {
49
+ // complete
50
+ alert (' ok: ' + msg);
51
+ }, function (msg ) {
52
+ // failed
53
+ alert (' ko: ' + msg);
54
+ });
55
+ }
43
56
```
You can’t perform that action at this time.
0 commit comments