[−]Struct jni_android_sys::android::media::MediaPlayer
public class MediaPlayer
Required feature: "android-media-MediaPlayer"
Methods
impl MediaPlayer
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, MediaPlayer>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, MediaPlayer>, Local<'env, Throwable>>
pub fn setDisplay<'env>(
&'env self,
arg0: impl Into<Option<&'env SurfaceHolder>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SurfaceHolder>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-view-SurfaceHolder"
pub fn setSurface<'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 setVideoScalingMode<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn create_Context_Uri<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>
) -> Result<Option<Local<'env, MediaPlayer>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>
) -> Result<Option<Local<'env, MediaPlayer>>, Local<'env, Throwable>>
Required features: "android-content-Context", "android-media-MediaPlayer", "android-net-Uri"
pub fn create_Context_Uri_SurfaceHolder<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>,
arg2: impl Into<Option<&'env SurfaceHolder>>
) -> Result<Option<Local<'env, MediaPlayer>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>,
arg2: impl Into<Option<&'env SurfaceHolder>>
) -> Result<Option<Local<'env, MediaPlayer>>, Local<'env, Throwable>>
Required features: "android-content-Context", "android-media-MediaPlayer", "android-net-Uri", "android-view-SurfaceHolder"
pub fn create_Context_Uri_SurfaceHolder_AudioAttributes_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>,
arg2: impl Into<Option<&'env SurfaceHolder>>,
arg3: impl Into<Option<&'env AudioAttributes>>,
arg4: i32
) -> Result<Option<Local<'env, MediaPlayer>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>,
arg2: impl Into<Option<&'env SurfaceHolder>>,
arg3: impl Into<Option<&'env AudioAttributes>>,
arg4: i32
) -> Result<Option<Local<'env, MediaPlayer>>, Local<'env, Throwable>>
Required features: "android-content-Context", "android-media-AudioAttributes", "android-media-MediaPlayer", "android-net-Uri", "android-view-SurfaceHolder"
pub fn create_Context_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: i32
) -> Result<Option<Local<'env, MediaPlayer>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: i32
) -> Result<Option<Local<'env, MediaPlayer>>, Local<'env, Throwable>>
Required features: "android-content-Context", "android-media-MediaPlayer"
pub fn create_Context_int_AudioAttributes_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: i32,
arg2: impl Into<Option<&'env AudioAttributes>>,
arg3: i32
) -> Result<Option<Local<'env, MediaPlayer>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: i32,
arg2: impl Into<Option<&'env AudioAttributes>>,
arg3: i32
) -> Result<Option<Local<'env, MediaPlayer>>, Local<'env, Throwable>>
Required features: "android-content-Context", "android-media-AudioAttributes", "android-media-MediaPlayer"
pub fn setDataSource_Context_Uri<'env>(
&'env self,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-Context", "android-net-Uri"
pub fn setDataSource_Context_Uri_Map_List<'env>(
&'env self,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>,
arg2: impl Into<Option<&'env Map>>,
arg3: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>,
arg2: impl Into<Option<&'env Map>>,
arg3: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-Context", "android-net-Uri", "java-util-List", "java-util-Map"
pub fn setDataSource_Context_Uri_Map<'env>(
&'env self,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>,
arg2: impl Into<Option<&'env Map>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>,
arg2: impl Into<Option<&'env Map>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-Context", "android-net-Uri", "java-util-Map"
pub fn setDataSource_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 setDataSource_AssetFileDescriptor<'env>(
&'env self,
arg0: impl Into<Option<&'env AssetFileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AssetFileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-res-AssetFileDescriptor"
pub fn setDataSource_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 setDataSource_FileDescriptor_long_long<'env>(
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>,
arg1: i64,
arg2: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>,
arg1: i64,
arg2: i64
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-FileDescriptor"
pub fn setDataSource_MediaDataSource<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaDataSource>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaDataSource>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaDataSource"
pub fn prepare<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn prepareAsync<'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 createVolumeShaper<'env>(
&'env self,
arg0: impl Into<Option<&'env VolumeShaper_Configuration>>
) -> Result<Option<Local<'env, VolumeShaper>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env VolumeShaper_Configuration>>
) -> Result<Option<Local<'env, VolumeShaper>>, Local<'env, Throwable>>
Required features: "android-media-VolumeShaper", "android-media-VolumeShaper_Configuration"
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 setWakeMode<'env>(
&'env self,
arg0: impl Into<Option<&'env Context>>,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Context>>,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-Context"
pub fn setScreenOnWhilePlaying<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn getVideoWidth<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getVideoHeight<'env>(&'env self) -> Result<i32, 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 fn isPlaying<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn setPlaybackParams<'env>(
&'env self,
arg0: impl Into<Option<&'env PlaybackParams>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env PlaybackParams>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-PlaybackParams"
pub fn getPlaybackParams<'env>(
&'env self
) -> Result<Option<Local<'env, PlaybackParams>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, PlaybackParams>>, Local<'env, Throwable>>
Required features: "android-media-PlaybackParams"
pub fn setSyncParams<'env>(
&'env self,
arg0: impl Into<Option<&'env SyncParams>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SyncParams>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-SyncParams"
pub fn getSyncParams<'env>(
&'env self
) -> Result<Option<Local<'env, SyncParams>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, SyncParams>>, Local<'env, Throwable>>
Required features: "android-media-SyncParams"
pub fn seekTo_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 seekTo_int<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getTimestamp<'env>(
&'env self
) -> Result<Option<Local<'env, MediaTimestamp>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, MediaTimestamp>>, Local<'env, Throwable>>
Required features: "android-media-MediaTimestamp"
pub fn getCurrentPosition<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getDuration<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn setNextMediaPlayer<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer"
pub fn release<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn reset<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn setAudioStreamType<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setAudioAttributes<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioAttributes>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioAttributes>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-AudioAttributes"
pub fn setLooping<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn isLooping<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn setVolume<'env>(
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
pub fn setAudioSessionId<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getAudioSessionId<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn attachAuxEffect<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setAuxEffectSendLevel<'env>(
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32
) -> Result<(), Local<'env, Throwable>>
pub fn getTrackInfo<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<MediaPlayer_TrackInfo, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<MediaPlayer_TrackInfo, Throwable>>>, Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_TrackInfo"
pub fn addTimedTextSource_String_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn addTimedTextSource_Context_Uri_String<'env>(
&'env self,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>,
arg2: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env Uri>>,
arg2: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-Context", "android-net-Uri", "java-lang-String"
pub fn addTimedTextSource_FileDescriptor_String<'env>(
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-FileDescriptor", "java-lang-String"
pub fn addTimedTextSource_FileDescriptor_long_long_String<'env>(
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>,
arg1: i64,
arg2: i64,
arg3: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>,
arg1: i64,
arg2: i64,
arg3: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-FileDescriptor", "java-lang-String"
pub fn getSelectedTrack<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn selectTrack<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn deselectTrack<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setOnPreparedListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnPreparedListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnPreparedListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnPreparedListener"
pub fn setOnCompletionListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnCompletionListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnCompletionListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnCompletionListener"
pub fn setOnBufferingUpdateListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnBufferingUpdateListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnBufferingUpdateListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnBufferingUpdateListener"
pub fn setOnSeekCompleteListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnSeekCompleteListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnSeekCompleteListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnSeekCompleteListener"
pub fn setOnVideoSizeChangedListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnVideoSizeChangedListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnVideoSizeChangedListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnVideoSizeChangedListener"
pub fn setOnTimedTextListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnTimedTextListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnTimedTextListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnTimedTextListener"
pub fn setOnSubtitleDataListener_OnSubtitleDataListener_Handler<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnSubtitleDataListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnSubtitleDataListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnSubtitleDataListener", "android-os-Handler"
pub fn setOnSubtitleDataListener_OnSubtitleDataListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnSubtitleDataListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnSubtitleDataListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnSubtitleDataListener"
pub fn clearOnSubtitleDataListener<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn setOnMediaTimeDiscontinuityListener_OnMediaTimeDiscontinuityListener_Handler<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnMediaTimeDiscontinuityListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnMediaTimeDiscontinuityListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
setOnMediaTimeDiscontinuityListener
Required features: "android-media-MediaPlayer_OnMediaTimeDiscontinuityListener", "android-os-Handler"
pub fn setOnMediaTimeDiscontinuityListener_OnMediaTimeDiscontinuityListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnMediaTimeDiscontinuityListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnMediaTimeDiscontinuityListener>>
) -> Result<(), Local<'env, Throwable>>
setOnMediaTimeDiscontinuityListener
Required features: "android-media-MediaPlayer_OnMediaTimeDiscontinuityListener"
pub fn clearOnMediaTimeDiscontinuityListener<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn setOnTimedMetaDataAvailableListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnTimedMetaDataAvailableListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnTimedMetaDataAvailableListener>>
) -> Result<(), Local<'env, Throwable>>
setOnTimedMetaDataAvailableListener
Required features: "android-media-MediaPlayer_OnTimedMetaDataAvailableListener"
pub fn setOnErrorListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnErrorListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnErrorListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnErrorListener"
pub fn setOnInfoListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnInfoListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnInfoListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnInfoListener"
pub fn setOnDrmConfigHelper<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnDrmConfigHelper>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnDrmConfigHelper>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnDrmConfigHelper"
pub fn setOnDrmInfoListener_OnDrmInfoListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnDrmInfoListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnDrmInfoListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnDrmInfoListener"
pub fn setOnDrmInfoListener_OnDrmInfoListener_Handler<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnDrmInfoListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnDrmInfoListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnDrmInfoListener", "android-os-Handler"
pub fn setOnDrmPreparedListener_OnDrmPreparedListener<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnDrmPreparedListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnDrmPreparedListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnDrmPreparedListener"
pub fn setOnDrmPreparedListener_OnDrmPreparedListener_Handler<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnDrmPreparedListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaPlayer_OnDrmPreparedListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_OnDrmPreparedListener", "android-os-Handler"
pub fn getDrmInfo<'env>(
&'env self
) -> Result<Option<Local<'env, MediaPlayer_DrmInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, MediaPlayer_DrmInfo>>, Local<'env, Throwable>>
Required features: "android-media-MediaPlayer_DrmInfo"
pub fn prepareDrm<'env>(
&'env self,
arg0: impl Into<Option<&'env UUID>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env UUID>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-UUID"
pub fn releaseDrm<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn getKeyRequest<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: impl Into<Option<&'env ByteArray>>,
arg2: impl Into<Option<&'env String>>,
arg3: i32,
arg4: impl Into<Option<&'env Map>>
) -> Result<Option<Local<'env, MediaDrm_KeyRequest>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: impl Into<Option<&'env ByteArray>>,
arg2: impl Into<Option<&'env String>>,
arg3: i32,
arg4: impl Into<Option<&'env Map>>
) -> Result<Option<Local<'env, MediaDrm_KeyRequest>>, Local<'env, Throwable>>
Required features: "android-media-MediaDrm_KeyRequest", "java-lang-String", "java-util-Map"
pub fn provideKeyResponse<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
pub fn restoreKeys<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
pub fn getDrmPropertyString<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setDrmPropertyString<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub const MEDIA_ERROR_IO: i32
[src]
public static final MEDIA_ERROR_IO
pub const MEDIA_ERROR_MALFORMED: i32
[src]
public static final MEDIA_ERROR_MALFORMED
pub const MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK: i32
[src]
public static final MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK
pub const MEDIA_ERROR_SERVER_DIED: i32
[src]
public static final MEDIA_ERROR_SERVER_DIED
pub const MEDIA_ERROR_TIMED_OUT: i32
[src]
public static final MEDIA_ERROR_TIMED_OUT
pub const MEDIA_ERROR_UNKNOWN: i32
[src]
public static final MEDIA_ERROR_UNKNOWN
pub const MEDIA_ERROR_UNSUPPORTED: i32
[src]
public static final MEDIA_ERROR_UNSUPPORTED
pub const MEDIA_INFO_AUDIO_NOT_PLAYING: i32
[src]
public static final MEDIA_INFO_AUDIO_NOT_PLAYING
pub const MEDIA_INFO_BAD_INTERLEAVING: i32
[src]
public static final MEDIA_INFO_BAD_INTERLEAVING
pub const MEDIA_INFO_BUFFERING_END: i32
[src]
public static final MEDIA_INFO_BUFFERING_END
pub const MEDIA_INFO_BUFFERING_START: i32
[src]
public static final MEDIA_INFO_BUFFERING_START
pub const MEDIA_INFO_METADATA_UPDATE: i32
[src]
public static final MEDIA_INFO_METADATA_UPDATE
pub const MEDIA_INFO_NOT_SEEKABLE: i32
[src]
public static final MEDIA_INFO_NOT_SEEKABLE
pub const MEDIA_INFO_STARTED_AS_NEXT: i32
[src]
public static final MEDIA_INFO_STARTED_AS_NEXT
pub const MEDIA_INFO_SUBTITLE_TIMED_OUT: i32
[src]
public static final MEDIA_INFO_SUBTITLE_TIMED_OUT
pub const MEDIA_INFO_UNKNOWN: i32
[src]
public static final MEDIA_INFO_UNKNOWN
pub const MEDIA_INFO_UNSUPPORTED_SUBTITLE: i32
[src]
public static final MEDIA_INFO_UNSUPPORTED_SUBTITLE
pub const MEDIA_INFO_VIDEO_NOT_PLAYING: i32
[src]
public static final MEDIA_INFO_VIDEO_NOT_PLAYING
pub const MEDIA_INFO_VIDEO_RENDERING_START: i32
[src]
public static final MEDIA_INFO_VIDEO_RENDERING_START
pub const MEDIA_INFO_VIDEO_TRACK_LAGGING: i32
[src]
public static final MEDIA_INFO_VIDEO_TRACK_LAGGING
pub const MEDIA_MIMETYPE_TEXT_SUBRIP: &'static str
[src]
public static final MEDIA_MIMETYPE_TEXT_SUBRIP
pub const PREPARE_DRM_STATUS_PREPARATION_ERROR: i32
[src]
public static final PREPARE_DRM_STATUS_PREPARATION_ERROR
pub const PREPARE_DRM_STATUS_PROVISIONING_NETWORK_ERROR: i32
[src]
public static final PREPARE_DRM_STATUS_PROVISIONING_NETWORK_ERROR
pub const PREPARE_DRM_STATUS_PROVISIONING_SERVER_ERROR: i32
[src]
public static final PREPARE_DRM_STATUS_PROVISIONING_SERVER_ERROR
pub const PREPARE_DRM_STATUS_SUCCESS: i32
[src]
public static final PREPARE_DRM_STATUS_SUCCESS
pub const SEEK_CLOSEST: i32
[src]
public static final SEEK_CLOSEST
pub const SEEK_CLOSEST_SYNC: i32
[src]
public static final SEEK_CLOSEST_SYNC
pub const SEEK_NEXT_SYNC: i32
[src]
public static final SEEK_NEXT_SYNC
pub const SEEK_PREVIOUS_SYNC: i32
[src]
public static final SEEK_PREVIOUS_SYNC
pub const VIDEO_SCALING_MODE_SCALE_TO_FIT: i32
[src]
public static final VIDEO_SCALING_MODE_SCALE_TO_FIT
pub const VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING: i32
[src]
public static final VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
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 MediaPlayer
impl AsRef<AudioRouting> for MediaPlayer
fn as_ref(&self) -> &AudioRouting
impl AsRef<VolumeAutomation> for MediaPlayer
fn as_ref(&self) -> &VolumeAutomation
impl AsValidJObjectAndEnv for MediaPlayer
impl Deref for MediaPlayer
impl JniType for MediaPlayer
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for MediaPlayer
impl !Send for MediaPlayer
impl !Sync for MediaPlayer
impl Unpin for MediaPlayer
impl UnwindSafe for MediaPlayer
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>,