Package org.robolectric.shadows
Class ShadowMediaRecorder
java.lang.Object
org.robolectric.shadows.ShadowMediaRecorder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintintintlongintintgetState()protected Surfaceintintintintintintprotected voidprepare()protected voidrelease()protected voidreset()protected voidsetAudioChannels(int numChannels) protected voidsetAudioEncoder(int audio_encoder) protected voidsetAudioEncodingBitRate(int bitRate) protected voidsetAudioSamplingRate(int samplingRate) protected voidsetAudioSource(int audio_source) protected voidprotected voidsetMaxDuration(int max_duration_ms) protected voidsetMaxFileSize(long max_filesize_bytes) protected voidprotected voidprotected voidsetOutputFile(FileDescriptor fileDescriptor) protected voidsetOutputFile(String path) protected voidsetOutputFormat(int output_format) protected voidprotected voidsetVideoEncoder(int video_encoder) protected voidsetVideoEncodingBitRate(int bitRate) protected voidsetVideoFrameRate(int rate) protected voidsetVideoSize(int width, int height) protected voidsetVideoSource(int video_source) protected voidstart()protected voidstop()
-
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
-
setAudioChannels
@Implementation protected void setAudioChannels(int numChannels) -
setAudioEncoder
@Implementation protected void setAudioEncoder(int audio_encoder) -
setAudioEncodingBitRate
@Implementation protected void setAudioEncodingBitRate(int bitRate) -
setAudioSamplingRate
@Implementation protected void setAudioSamplingRate(int samplingRate) -
setAudioSource
@Implementation protected void setAudioSource(int audio_source) -
setCamera
-
setMaxDuration
@Implementation protected void setMaxDuration(int max_duration_ms) -
setMaxFileSize
@Implementation protected void setMaxFileSize(long max_filesize_bytes) -
setOnErrorListener
-
setOnInfoListener
-
setOutputFile
-
setOutputFile
-
setOutputFormat
@Implementation protected void setOutputFormat(int output_format) -
setPreviewDisplay
-
setVideoEncoder
@Implementation protected void setVideoEncoder(int video_encoder) -
setVideoEncodingBitRate
@Implementation protected void setVideoEncodingBitRate(int bitRate) -
setVideoFrameRate
@Implementation protected void setVideoFrameRate(int rate) -
setVideoSize
@Implementation protected void setVideoSize(int width, int height) -
setVideoSource
@Implementation protected void setVideoSource(int video_source) -
prepare
@Implementation protected void prepare() -
start
@Implementation protected void start() -
stop
@Implementation protected void stop() -
reset
@Implementation protected void reset() -
release
@Implementation protected void 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
-
getOutputFileDescriptor
-
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()
-