Class MediaRecorder
public class MediaRecorder : JVMBridgeBase<MediaRecorder>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition, IAudioRecordingMonitor, IAudioRouting, IMicrophoneDirection
- Inheritance
-
MediaRecorder
- Implements
- Extension Methods
Constructors
MediaRecorder()
[Obsolete("Deprecated in JVM")]
public MediaRecorder()
MediaRecorder(Context)
public MediaRecorder(Context arg0)
Parameters
MediaRecorder(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public MediaRecorder(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
MEDIA_ERROR_SERVER_DIED
public static int MEDIA_ERROR_SERVER_DIED { get; set; }
Property Value
MEDIA_RECORDER_ERROR_UNKNOWN
public static int MEDIA_RECORDER_ERROR_UNKNOWN { get; set; }
Property Value
MEDIA_RECORDER_INFO_MAX_DURATION_REACHED
public static int MEDIA_RECORDER_INFO_MAX_DURATION_REACHED { get; set; }
Property Value
MEDIA_RECORDER_INFO_MAX_FILESIZE_APPROACHING
public static int MEDIA_RECORDER_INFO_MAX_FILESIZE_APPROACHING { get; set; }
Property Value
MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED
public static int MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED { get; set; }
Property Value
MEDIA_RECORDER_INFO_NEXT_OUTPUT_FILE_STARTED
public static int MEDIA_RECORDER_INFO_NEXT_OUTPUT_FILE_STARTED { get; set; }
Property Value
MEDIA_RECORDER_INFO_UNKNOWN
https://developer.android.com/reference/android/media/MediaRecorder.html#MEDIA_RECORDER_INFO_UNKNOWN
public static int MEDIA_RECORDER_INFO_UNKNOWN { get; set; }
Property Value
Methods
AddOnRoutingChangedListener(OnRoutingChangedListener, Handler)
public void AddOnRoutingChangedListener(AudioRouting.OnRoutingChangedListener arg0, Handler arg1)
Parameters
arg0AudioRouting.OnRoutingChangedListenerarg1Handler
CreatePoolableInstance()
HPA initializer for MediaRecorder()
public static MediaRecorder CreatePoolableInstance()
Returns
CreatePoolableInstance(Context)
HPA initializer for MediaRecorder(Android.Content.Context arg0)
public static MediaRecorder CreatePoolableInstance(Context arg0)
Parameters
arg0Context
Returns
GetActiveMicrophones()
public List<MicrophoneInfo> GetActiveMicrophones()
Returns
Exceptions
GetActiveRecordingConfiguration()
public AudioRecordingConfiguration GetActiveRecordingConfiguration()
Returns
GetAudioSourceMax()
public static int GetAudioSourceMax()
Returns
GetLogSessionId()
public LogSessionId GetLogSessionId()
Returns
GetMaxAmplitude()
public int GetMaxAmplitude()
Returns
Exceptions
GetMetrics()
public PersistableBundle GetMetrics()
Returns
GetPreferredDevice()
public AudioDeviceInfo GetPreferredDevice()
Returns
GetRoutedDevice()
public AudioDeviceInfo GetRoutedDevice()
Returns
GetRoutedDevices()
public List<AudioDeviceInfo> GetRoutedDevices()
Returns
GetSurface()
public Surface GetSurface()
Returns
IsPrivacySensitive()
public bool IsPrivacySensitive()
Returns
Pause()
public void Pause()
Exceptions
Prepare()
public void Prepare()
Exceptions
RegisterAudioRecordingCallback(Executor, AudioRecordingCallback)
public void RegisterAudioRecordingCallback(Executor arg0, AudioManager.AudioRecordingCallback arg1)
Parameters
Release()
public void Release()
RemoveOnRoutingChangedListener(OnRoutingChangedListener)
public void RemoveOnRoutingChangedListener(AudioRouting.OnRoutingChangedListener arg0)
Parameters
Reset()
public void Reset()
Resume()
public void Resume()
Exceptions
SetAudioChannels(int)
public void SetAudioChannels(int arg0)
Parameters
SetAudioEncoder(int)
public void SetAudioEncoder(int arg0)
Parameters
Exceptions
SetAudioEncodingBitRate(int)
public void SetAudioEncodingBitRate(int arg0)
Parameters
SetAudioProfile(AudioProfile)
public void SetAudioProfile(EncoderProfiles.AudioProfile arg0)
Parameters
SetAudioSamplingRate(int)
public void SetAudioSamplingRate(int arg0)
Parameters
SetAudioSource(int)
public void SetAudioSource(int arg0)
Parameters
Exceptions
SetCamera(Camera)
[Obsolete("Deprecated in JVM")]
public void SetCamera(Camera arg0)
Parameters
SetCaptureRate(double)
public void SetCaptureRate(double arg0)
Parameters
SetInputSurface(Surface)
public void SetInputSurface(Surface arg0)
Parameters
SetLocation(float, float)
public void SetLocation(float arg0, float arg1)
Parameters
SetLogSessionId(LogSessionId)
public void SetLogSessionId(LogSessionId arg0)
Parameters
arg0LogSessionId
SetMaxDuration(int)
public void SetMaxDuration(int arg0)
Parameters
Exceptions
SetMaxFileSize(long)
public void SetMaxFileSize(long arg0)
Parameters
Exceptions
SetNextOutputFile(File)
public void SetNextOutputFile(File arg0)
Parameters
Exceptions
SetNextOutputFile(FileDescriptor)
public void SetNextOutputFile(FileDescriptor arg0)
Parameters
Exceptions
SetOnErrorListener(OnErrorListener)
public void SetOnErrorListener(MediaRecorder.OnErrorListener arg0)
Parameters
SetOnInfoListener(OnInfoListener)
public void SetOnInfoListener(MediaRecorder.OnInfoListener arg0)
Parameters
SetOrientationHint(int)
public void SetOrientationHint(int arg0)
Parameters
SetOutputFile(File)
https://developer.android.com/reference/android/media/MediaRecorder.html#setOutputFile(java.io.File)
public void SetOutputFile(File arg0)
Parameters
SetOutputFile(FileDescriptor)
public void SetOutputFile(FileDescriptor arg0)
Parameters
Exceptions
SetOutputFile(String)
public void SetOutputFile(String arg0)
Parameters
Exceptions
SetOutputFormat(int)
public void SetOutputFormat(int arg0)
Parameters
Exceptions
SetPreferredDevice(AudioDeviceInfo)
public bool SetPreferredDevice(AudioDeviceInfo arg0)
Parameters
Returns
SetPreferredMicrophoneDirection(int)
public bool SetPreferredMicrophoneDirection(int arg0)
Parameters
Returns
SetPreferredMicrophoneFieldDimension(float)
public bool SetPreferredMicrophoneFieldDimension(float arg0)
Parameters
Returns
SetPreviewDisplay(Surface)
public void SetPreviewDisplay(Surface arg0)
Parameters
SetPrivacySensitive(bool)
public void SetPrivacySensitive(bool arg0)
Parameters
SetProfile(CamcorderProfile)
public void SetProfile(CamcorderProfile arg0)
Parameters
SetVideoEncoder(int)
public void SetVideoEncoder(int arg0)
Parameters
Exceptions
SetVideoEncodingBitRate(int)
public void SetVideoEncodingBitRate(int arg0)
Parameters
SetVideoEncodingProfileLevel(int, int)
public void SetVideoEncodingProfileLevel(int arg0, int arg1)
Parameters
SetVideoFrameRate(int)
public void SetVideoFrameRate(int arg0)
Parameters
Exceptions
SetVideoProfile(VideoProfile)
public void SetVideoProfile(EncoderProfiles.VideoProfile arg0)
Parameters
SetVideoSize(int, int)
public void SetVideoSize(int arg0, int arg1)
Parameters
Exceptions
SetVideoSource(int)
public void SetVideoSource(int arg0)
Parameters
Exceptions
Start()
public void Start()
Exceptions
Stop()
public void Stop()
Exceptions
UnregisterAudioRecordingCallback(AudioRecordingCallback)
public void UnregisterAudioRecordingCallback(AudioManager.AudioRecordingCallback arg0)
Parameters
Operators
implicit operator AudioRecordingMonitor(MediaRecorder)
Converter from MediaRecorder to AudioRecordingMonitor
public static implicit operator AudioRecordingMonitor(MediaRecorder t)
Parameters
Returns
implicit operator AudioRouting(MediaRecorder)
Converter from MediaRecorder to AudioRouting
public static implicit operator AudioRouting(MediaRecorder t)
Parameters
Returns
implicit operator MicrophoneDirection(MediaRecorder)
Converter from MediaRecorder to MicrophoneDirection
public static implicit operator MicrophoneDirection(MediaRecorder t)