2013-01-14 88 views

回答

0
mMediaRecorder.setOnInfoListener(new medialistener()); 

class medialistener implements MediaRecorder.OnInfoListener {  
    public void onInfo(MediaRecorder recorder, int what, int extra) 
    { 
     if(what==MediaRecorder.MEDIA_RECORDER_INFO_MAX_DURATION_REACHED) 
     { 
       // Do what you want to do... 
     } 

    // Log.i("video test", "Video Info: "+what+", "+extra); 
    } 
} 
相關問題