@Implements(value=android.media.MediaRecorder.class) public class ShadowMediaRecorder extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
STATE_DATA_SOURCE_CONFIGURED |
static int |
STATE_ERROR |
static int |
STATE_INITIAL |
static int |
STATE_INITIALIZED |
static int |
STATE_PREPARED |
static int |
STATE_RECORDING |
static int |
STATE_RELEASED |
Constructor and Description |
---|
ShadowMediaRecorder() |
Modifier and Type | Method and Description |
---|---|
protected void |
__constructor__() |
protected static void |
__staticInitializer__() |
int |
getAudioChannels() |
int |
getAudioEncoder() |
int |
getAudioEncodingBitRate() |
int |
getAudioSamplingRate() |
int |
getAudioSource() |
android.hardware.Camera |
getCamera() |
android.media.MediaRecorder.OnErrorListener |
getErrorListener() |
android.media.MediaRecorder.OnInfoListener |
getInfoListener() |
int |
getMaxDuration() |
long |
getMaxFileSize() |
int |
getOutputFormat() |
java.lang.String |
getOutputPath() |
android.view.Surface |
getPreviewDisplay() |
int |
getState() |
int |
getVideoEncoder() |
int |
getVideoEncodingBitRate() |
int |
getVideoFrameRate() |
int |
getVideoHeight() |
int |
getVideoSource() |
int |
getVideoWidth() |
protected void |
prepare() |
protected void |
release() |
protected void |
reset() |
protected void |
setAudioChannels(int numChannels) |
protected void |
setAudioEncoder(int audio_encoder) |
protected void |
setAudioEncodingBitRate(int bitRate) |
protected void |
setAudioSamplingRate(int samplingRate) |
protected void |
setAudioSource(int audio_source) |
protected void |
setCamera(android.hardware.Camera c) |
protected void |
setMaxDuration(int max_duration_ms) |
protected void |
setMaxFileSize(long max_filesize_bytes) |
protected void |
setOnErrorListener(android.media.MediaRecorder.OnErrorListener l) |
protected void |
setOnInfoListener(android.media.MediaRecorder.OnInfoListener listener) |
protected void |
setOutputFile(java.lang.String path) |
protected void |
setOutputFormat(int output_format) |
protected void |
setPreviewDisplay(android.view.Surface sv) |
protected void |
setVideoEncoder(int video_encoder) |
protected void |
setVideoEncodingBitRate(int bitRate) |
protected void |
setVideoFrameRate(int rate) |
protected void |
setVideoSize(int width,
int height) |
protected void |
setVideoSource(int video_source) |
protected void |
start() |
protected void |
stop() |
public static final int STATE_ERROR
public static final int STATE_INITIAL
public static final int STATE_INITIALIZED
public static final int STATE_DATA_SOURCE_CONFIGURED
public static final int STATE_PREPARED
public static final int STATE_RECORDING
public static final int STATE_RELEASED
@Implementation protected static void __staticInitializer__()
@Implementation protected void __constructor__()
@Implementation protected void setAudioChannels(int numChannels)
@Implementation protected void setAudioEncoder(int audio_encoder)
@Implementation protected void setAudioEncodingBitRate(int bitRate)
@Implementation protected void setAudioSamplingRate(int samplingRate)
@Implementation protected void setAudioSource(int audio_source)
@Implementation protected void setCamera(android.hardware.Camera c)
@Implementation protected void setMaxDuration(int max_duration_ms)
@Implementation protected void setMaxFileSize(long max_filesize_bytes)
@Implementation protected void setOnErrorListener(android.media.MediaRecorder.OnErrorListener l)
@Implementation protected void setOnInfoListener(android.media.MediaRecorder.OnInfoListener listener)
@Implementation protected void setOutputFile(java.lang.String path)
@Implementation protected void setOutputFormat(int output_format)
@Implementation protected void setPreviewDisplay(android.view.Surface sv)
@Implementation protected void setVideoEncoder(int video_encoder)
@Implementation protected void setVideoEncodingBitRate(int bitRate)
@Implementation protected void setVideoFrameRate(int rate)
@Implementation protected void setVideoSize(int width, int height)
@Implementation protected void setVideoSource(int video_source)
@Implementation protected void prepare()
@Implementation protected void start()
@Implementation protected void stop()
@Implementation protected void reset()
@Implementation protected void release()
public android.hardware.Camera getCamera()
public int getAudioChannels()
public int getAudioEncoder()
public int getAudioEncodingBitRate()
public int getAudioSamplingRate()
public int getAudioSource()
public int getMaxDuration()
public long getMaxFileSize()
public java.lang.String getOutputPath()
public int getOutputFormat()
public int getVideoEncoder()
public int getVideoEncodingBitRate()
public int getVideoFrameRate()
public int getVideoWidth()
public int getVideoHeight()
public int getVideoSource()
public android.view.Surface getPreviewDisplay()
public android.media.MediaRecorder.OnErrorListener getErrorListener()
public android.media.MediaRecorder.OnInfoListener getInfoListener()
public int getState()