Package org.robolectric.shadows
Class ShadowMediaRecorder
java.lang.Object
org.robolectric.shadows.ShadowMediaRecorder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected static void
int
int
int
int
int
int
long
int
int
getState()
protected Surface
int
int
int
int
int
int
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
protected void
setMaxDuration
(int max_duration_ms) protected void
setMaxFileSize
(long max_filesize_bytes) protected void
protected void
protected void
setOutputFile
(String path) protected void
setOutputFormat
(int output_format) protected void
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()
-
Field Details
-
STATE_ERROR
public static final int STATE_ERROR- See Also:
-
STATE_INITIAL
public static final int STATE_INITIAL- See Also:
-
STATE_INITIALIZED
public static final int STATE_INITIALIZED- See Also:
-
STATE_DATA_SOURCE_CONFIGURED
public static final int STATE_DATA_SOURCE_CONFIGURED- See Also:
-
STATE_PREPARED
public static final int STATE_PREPARED- See Also:
-
STATE_RECORDING
public static final int STATE_RECORDING- See Also:
-
STATE_RELEASED
public static final int STATE_RELEASED- See Also:
-
-
Constructor Details
-
ShadowMediaRecorder
public ShadowMediaRecorder()
-
-
Method Details
-
__staticInitializer__
-
__constructor__
-
setAudioChannels
-
setAudioEncoder
-
setAudioEncodingBitRate
-
setAudioSamplingRate
-
setAudioSource
-
setCamera
-
setMaxDuration
-
setMaxFileSize
-
setOnErrorListener
-
setOnInfoListener
-
setOutputFile
-
setOutputFormat
-
setPreviewDisplay
-
setVideoEncoder
-
setVideoEncodingBitRate
-
setVideoFrameRate
-
setVideoSize
-
setVideoSource
-
prepare
-
start
-
stop
-
reset
-
release
-
getSurface
-
getCamera
-
getAudioChannels
public int getAudioChannels() -
getAudioEncoder
public int getAudioEncoder() -
getAudioEncodingBitRate
public int getAudioEncodingBitRate() -
getAudioSamplingRate
public int getAudioSamplingRate() -
getAudioSource
public int getAudioSource() -
getMaxDuration
public int getMaxDuration() -
getMaxFileSize
public long getMaxFileSize() -
getOutputPath
-
getOutputFormat
public int getOutputFormat() -
getVideoEncoder
public int getVideoEncoder() -
getVideoEncodingBitRate
public int getVideoEncodingBitRate() -
getVideoFrameRate
public int getVideoFrameRate() -
getVideoWidth
public int getVideoWidth() -
getVideoHeight
public int getVideoHeight() -
getVideoSource
public int getVideoSource() -
getPreviewDisplay
-
getErrorListener
-
getInfoListener
-
getState
public int getState()
-