@@ -49,8 +49,6 @@ var Media = function(src, successCallback, errorCallback, statusCallback) {
49
49
this . _duration = - 1 ;
50
50
this . _position = - 1 ;
51
51
52
- Media . onStatus ( this . id , Media . MEDIA_STATE , Media . MEDIA_STARTING ) ;
53
-
54
52
try {
55
53
this . node = createNode ( this ) ;
56
54
} catch ( err ) {
@@ -66,7 +64,7 @@ var Media = function(src, successCallback, errorCallback, statusCallback) {
66
64
function createNode ( media ) {
67
65
var node = new Audio ( ) ;
68
66
69
- node . onloadstart = function ( ) {
67
+ node . onplay = function ( ) {
70
68
Media . onStatus ( media . id , Media . MEDIA_STATE , Media . MEDIA_STARTING ) ;
71
69
} ;
72
70
@@ -201,6 +199,34 @@ Media.prototype.stopRecord = function() {
201
199
Media . onStatus ( this . id , Media . MEDIA_ERROR , "Not supported" ) ;
202
200
} ;
203
201
202
+ /**
203
+ * Pause recording audio file.
204
+ */
205
+ Media . prototype . pauseRecord = function ( ) {
206
+ Media . onStatus ( this . id , Media . MEDIA_ERROR , "Not supported" ) ;
207
+ } ;
208
+
209
+ /**
210
+ * Returns the current amplitude of the current recording.
211
+ */
212
+ Media . prototype . getCurrentAmplitude = function ( ) {
213
+ Media . onStatus ( this . id , Media . MEDIA_ERROR , "Not supported" ) ;
214
+ } ;
215
+
216
+ /**
217
+ * Resume recording an audio file.
218
+ */
219
+ Media . prototype . resumeRecord = function ( ) {
220
+ Media . onStatus ( this . id , Media . MEDIA_ERROR , "Not supported" ) ;
221
+ } ;
222
+
223
+ /**
224
+ * Set rate of an autio file.
225
+ */
226
+ Media . prototype . setRate = function ( ) {
227
+ Media . onStatus ( this . id , Media . MEDIA_ERROR , "Not supported" ) ;
228
+ } ;
229
+
204
230
/**
205
231
* Release the resources.
206
232
*/
0 commit comments