完成 android 基本功能
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package com.mabeijianxi.smallvideorecord2;
|
||||
|
||||
|
||||
import com.mabeijianxi.smallvideorecord2.model.MediaObject;
|
||||
|
||||
/**
|
||||
* 视频录制接口
|
||||
*
|
||||
*/
|
||||
public interface IMediaRecorder {
|
||||
|
||||
/**
|
||||
* 开始录制
|
||||
*
|
||||
* @return 录制失败返回null
|
||||
*/
|
||||
public MediaObject.MediaPart startRecord();
|
||||
|
||||
/**
|
||||
* 停止录制
|
||||
*/
|
||||
public void stopRecord();
|
||||
|
||||
/**
|
||||
* 音频错误
|
||||
*
|
||||
* @param what 错误类型
|
||||
* @param message
|
||||
*/
|
||||
public void onAudioError(int what, String message);
|
||||
/**
|
||||
* 接收音频数据
|
||||
*
|
||||
* @param sampleBuffer 音频数据
|
||||
* @param len
|
||||
*/
|
||||
public void receiveAudioData(byte[] sampleBuffer, int len);
|
||||
}
|
||||
Reference in New Issue
Block a user