[−]Struct jni_android_sys::android::media::MediaRecorder
public class MediaRecorder
Required feature: "android-media-MediaRecorder"
Methods
impl MediaRecorder
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, MediaRecorder>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, MediaRecorder>, Local<'env, Throwable>>
pub fn setCamera<'env>(
&'env self,
arg0: impl Into<Option<&'env Camera>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Camera>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-hardware-Camera"
pub fn getSurface<'env>(
&'env self
) -> Result<Option<Local<'env, Surface>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Surface>>, Local<'env, Throwable>>
Required features: "android-view-Surface"
pub fn setInputSurface<'env>(
&'env self,
arg0: impl Into<Option<&'env Surface>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Surface>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-view-Surface"
pub fn setPreviewDisplay<'env>(
&'env self,
arg0: impl Into<Option<&'env Surface>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Surface>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-view-Surface"
pub fn setAudioSource<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getAudioSourceMax<'env>(
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
pub fn setVideoSource<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setProfile<'env>(
&'env self,
arg0: impl Into<Option<&'env CamcorderProfile>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CamcorderProfile>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-CamcorderProfile"
pub fn setCaptureRate<'env>(
&'env self,
arg0: f64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f64
) -> Result<(), Local<'env, Throwable>>
pub fn setOrientationHint<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setLocation<'env>(
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
pub fn setOutputFormat<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setVideoSize<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setVideoFrameRate<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setMaxDuration<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setMaxFileSize<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn setAudioEncoder<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setVideoEncoder<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setAudioSamplingRate<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setAudioChannels<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setAudioEncodingBitRate<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setVideoEncodingBitRate<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setVideoEncodingProfileLevel<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setOutputFile_FileDescriptor<'env>(
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-FileDescriptor"
pub fn setOutputFile_File<'env>(
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-File"
pub fn setNextOutputFile_FileDescriptor<'env>(
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-FileDescriptor"
pub fn setOutputFile_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setNextOutputFile_File<'env>(
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-File"
pub fn prepare<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn start<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn stop<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn pause<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn resume<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn reset<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn getMaxAmplitude<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn setOnErrorListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaRecorder_OnErrorListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaRecorder_OnErrorListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaRecorder_OnErrorListener"
pub fn setOnInfoListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaRecorder_OnInfoListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaRecorder_OnInfoListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaRecorder_OnInfoListener"
pub fn setPreferredDevice<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioDeviceInfo>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioDeviceInfo>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-media-AudioDeviceInfo"
pub fn getPreferredDevice<'env>(
&'env self
) -> Result<Option<Local<'env, AudioDeviceInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, AudioDeviceInfo>>, Local<'env, Throwable>>
Required features: "android-media-AudioDeviceInfo"
pub fn getRoutedDevice<'env>(
&'env self
) -> Result<Option<Local<'env, AudioDeviceInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, AudioDeviceInfo>>, Local<'env, Throwable>>
Required features: "android-media-AudioDeviceInfo"
pub fn addOnRoutingChangedListener<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioRouting_OnRoutingChangedListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioRouting_OnRoutingChangedListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-AudioRouting_OnRoutingChangedListener", "android-os-Handler"
pub fn removeOnRoutingChangedListener<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioRouting_OnRoutingChangedListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioRouting_OnRoutingChangedListener>>
) -> Result<(), Local<'env, Throwable>>
removeOnRoutingChangedListener
Required features: "android-media-AudioRouting_OnRoutingChangedListener"
pub fn getActiveMicrophones<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn release<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn getMetrics<'env>(
&'env self
) -> Result<Option<Local<'env, PersistableBundle>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, PersistableBundle>>, Local<'env, Throwable>>
Required features: "android-os-PersistableBundle"
pub const MEDIA_ERROR_SERVER_DIED: i32
[src]
public static final MEDIA_ERROR_SERVER_DIED
pub const MEDIA_RECORDER_ERROR_UNKNOWN: i32
[src]
public static final MEDIA_RECORDER_ERROR_UNKNOWN
pub const MEDIA_RECORDER_INFO_MAX_DURATION_REACHED: i32
[src]
public static final MEDIA_RECORDER_INFO_MAX_DURATION_REACHED
pub const MEDIA_RECORDER_INFO_MAX_FILESIZE_APPROACHING: i32
[src]
public static final MEDIA_RECORDER_INFO_MAX_FILESIZE_APPROACHING
pub const MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED: i32
[src]
public static final MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED
pub const MEDIA_RECORDER_INFO_NEXT_OUTPUT_FILE_STARTED: i32
[src]
public static final MEDIA_RECORDER_INFO_NEXT_OUTPUT_FILE_STARTED
pub const MEDIA_RECORDER_INFO_UNKNOWN: i32
[src]
public static final MEDIA_RECORDER_INFO_UNKNOWN
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for MediaRecorder
impl AsRef<AudioRouting> for MediaRecorder
fn as_ref(&self) -> &AudioRouting
impl AsValidJObjectAndEnv for MediaRecorder
impl Deref for MediaRecorder
impl JniType for MediaRecorder
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for MediaRecorder
impl !Send for MediaRecorder
impl !Sync for MediaRecorder
impl Unpin for MediaRecorder
impl UnwindSafe for MediaRecorder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,