android.media
Class MediaRecorder
java.lang.Object
android.media.MediaRecorder
public class MediaRecorder
- extends Object
MEDIA_RECORDER_ERROR_UNKNOWN
public static final int MEDIA_RECORDER_ERROR_UNKNOWN
- See Also:
- Constant Field Values
MEDIA_RECORDER_INFO_UNKNOWN
public static final int MEDIA_RECORDER_INFO_UNKNOWN
- See Also:
- Constant Field Values
MEDIA_RECORDER_INFO_MAX_DURATION_REACHED
public static final int MEDIA_RECORDER_INFO_MAX_DURATION_REACHED
- See Also:
- Constant Field Values
MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED
public static final int MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED
- See Also:
- Constant Field Values
MediaRecorder
public MediaRecorder()
setCamera
public void setCamera(Camera c)
setPreviewDisplay
public void setPreviewDisplay(Surface sv)
setAudioSource
public void setAudioSource(int audio_source)
throws IllegalStateException
- Throws:
IllegalStateException
getAudioSourceMax
public static final int getAudioSourceMax()
setVideoSource
public void setVideoSource(int video_source)
throws IllegalStateException
- Throws:
IllegalStateException
setProfile
public void setProfile(CamcorderProfile profile)
setCaptureRate
public void setCaptureRate(double fps)
setOrientationHint
public void setOrientationHint(int degrees)
setLocation
public void setLocation(float latitude,
float longitude)
setOutputFormat
public void setOutputFormat(int output_format)
throws IllegalStateException
- Throws:
IllegalStateException
setVideoSize
public void setVideoSize(int width,
int height)
throws IllegalStateException
- Throws:
IllegalStateException
setVideoFrameRate
public void setVideoFrameRate(int rate)
throws IllegalStateException
- Throws:
IllegalStateException
setMaxDuration
public void setMaxDuration(int max_duration_ms)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setMaxFileSize
public void setMaxFileSize(long max_filesize_bytes)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setAudioEncoder
public void setAudioEncoder(int audio_encoder)
throws IllegalStateException
- Throws:
IllegalStateException
setVideoEncoder
public void setVideoEncoder(int video_encoder)
throws IllegalStateException
- Throws:
IllegalStateException
setAudioSamplingRate
public void setAudioSamplingRate(int samplingRate)
setAudioChannels
public void setAudioChannels(int numChannels)
setAudioEncodingBitRate
public void setAudioEncodingBitRate(int bitRate)
setVideoEncodingBitRate
public void setVideoEncodingBitRate(int bitRate)
setAuxiliaryOutputFile
public void setAuxiliaryOutputFile(FileDescriptor fd)
setAuxiliaryOutputFile
public void setAuxiliaryOutputFile(String path)
setOutputFile
public void setOutputFile(FileDescriptor fd)
throws IllegalStateException
- Throws:
IllegalStateException
setOutputFile
public void setOutputFile(String path)
throws IllegalStateException
- Throws:
IllegalStateException
prepare
public void prepare()
throws IllegalStateException,
IOException
- Throws:
IllegalStateException
IOException
start
public void start()
throws IllegalStateException
- Throws:
IllegalStateException
stop
public void stop()
throws IllegalStateException
- Throws:
IllegalStateException
reset
public void reset()
getMaxAmplitude
public int getMaxAmplitude()
throws IllegalStateException
- Throws:
IllegalStateException
setOnErrorListener
public void setOnErrorListener(MediaRecorder.OnErrorListener l)
setOnInfoListener
public void setOnInfoListener(MediaRecorder.OnInfoListener listener)
release
public void release()
finalize
protected void finalize()
- Overrides:
finalize
in class Object
Copyright © 2008-2012. All Rights Reserved.