[]Struct jni_android_sys::android::media::MediaExtractor

#[repr(transparent)]
pub struct MediaExtractor(_);

public final class MediaExtractor

Required feature: "android-media-MediaExtractor"

Methods

impl MediaExtractor

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, MediaExtractor>, Local<'env, Throwable>>
[src]

pub fn setDataSource_MediaDataSource<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MediaDataSource>>
) -> Result<(), Local<'env, Throwable>>
[src]

setDataSource

Required features: "android-media-MediaDataSource"

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]

setDataSource

Required features: "android-content-Context", "android-net-Uri", "java-util-Map"

pub fn setDataSource_String_Map<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env Map>>
) -> Result<(), Local<'env, Throwable>>
[src]

setDataSource

Required features: "java-lang-String", "java-util-Map"

pub fn setDataSource_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

setDataSource

Required features: "java-lang-String"

pub fn setDataSource_AssetFileDescriptor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AssetFileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
[src]

setDataSource

Required features: "android-content-res-AssetFileDescriptor"

pub fn setDataSource_FileDescriptor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env FileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
[src]

setDataSource

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]

setDataSource

Required features: "java-io-FileDescriptor"

pub fn setMediaCas<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MediaCas>>
) -> Result<(), Local<'env, Throwable>>
[src]

setMediaCas

Required features: "android-media-MediaCas"

pub fn getCasInfo<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, MediaExtractor_CasInfo>>, Local<'env, Throwable>>
[src]

getCasInfo

Required features: "android-media-MediaExtractor_CasInfo"

pub fn release<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn getTrackCount<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getDrmInitData<'env>(
    &'env self
) -> Result<Option<Local<'env, DrmInitData>>, Local<'env, Throwable>>
[src]

getDrmInitData

Required features: "android-media-DrmInitData"

pub fn getAudioPresentations<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getAudioPresentations

Required features: "java-util-List"

pub fn getPsshInfo<'env>(
    &'env self
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
[src]

getPsshInfo

Required features: "java-util-Map"

pub fn getTrackFormat<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, MediaFormat>>, Local<'env, Throwable>>
[src]

getTrackFormat

Required features: "android-media-MediaFormat"

pub fn selectTrack<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn unselectTrack<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn seekTo<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn advance<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn readSampleData<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteBuffer>>,
    arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

readSampleData

Required features: "java-nio-ByteBuffer"

pub fn getSampleTrackIndex<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getSampleTime<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn getSampleSize<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn getSampleFlags<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getSampleCryptoInfo<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MediaCodec_CryptoInfo>>
) -> Result<bool, Local<'env, Throwable>>
[src]

getSampleCryptoInfo

Required features: "android-media-MediaCodec_CryptoInfo"

pub fn getCachedDuration<'env>(
    &'env self
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn hasCacheReachedEndOfStream<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn getMetrics<'env>(
    &'env self
) -> Result<Option<Local<'env, PersistableBundle>>, Local<'env, Throwable>>
[src]

getMetrics

Required features: "android-os-PersistableBundle"

pub const SAMPLE_FLAG_ENCRYPTED: i32[src]

public static final SAMPLE_FLAG_ENCRYPTED

pub const SAMPLE_FLAG_PARTIAL_FRAME: i32[src]

public static final SAMPLE_FLAG_PARTIAL_FRAME

pub const SAMPLE_FLAG_SYNC: i32[src]

public static final SAMPLE_FLAG_SYNC

pub const SEEK_TO_CLOSEST_SYNC: i32[src]

public static final SEEK_TO_CLOSEST_SYNC

pub const SEEK_TO_NEXT_SYNC: i32[src]

public static final SEEK_TO_NEXT_SYNC

pub const SEEK_TO_PREVIOUS_SYNC: i32[src]

public static final SEEK_TO_PREVIOUS_SYNC

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

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]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

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]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for MediaExtractor

impl AsValidJObjectAndEnv for MediaExtractor

impl Deref for MediaExtractor

type Target = Object

The resulting type after dereferencing.

impl JniType for MediaExtractor

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.