You have to put in media_recorder a number of millisecond after whose collecting audio data, for example
media_recorder.start(200);