Table of Contents

Class MediaExtractor

Namespace
Android.Media
Assembly
MASES.Netdroid.dll
public class MediaExtractor : JVMBridgeBase<MediaExtractor>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
Inheritance
MediaExtractor
Implements
Extension Methods

Constructors

MediaExtractor()

public MediaExtractor()

MediaExtractor(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 MediaExtractor(IJVMBridgeBaseInitializer initializer)

Parameters

initializer IJVMBridgeBaseInitializer

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements java.lang.AutoCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

SAMPLE_FLAG_ENCRYPTED

public static int SAMPLE_FLAG_ENCRYPTED { get; set; }

Property Value

int

SAMPLE_FLAG_PARTIAL_FRAME

public static int SAMPLE_FLAG_PARTIAL_FRAME { get; set; }

Property Value

int

SAMPLE_FLAG_SYNC

public static int SAMPLE_FLAG_SYNC { get; set; }

Property Value

int

SEEK_TO_CLOSEST_SYNC

public static int SEEK_TO_CLOSEST_SYNC { get; set; }

Property Value

int

SEEK_TO_NEXT_SYNC

public static int SEEK_TO_NEXT_SYNC { get; set; }

Property Value

int

SEEK_TO_PREVIOUS_SYNC

public static int SEEK_TO_PREVIOUS_SYNC { get; set; }

Property Value

int

Methods

Advance()

public bool Advance()

Returns

bool

bool

CreatePoolableInstance()

HPA initializer for MediaExtractor()

public static MediaExtractor CreatePoolableInstance()

Returns

MediaExtractor

GetAudioPresentations(int)

public List<AudioPresentation> GetAudioPresentations(int arg0)

Parameters

arg0 int

int

Returns

List<AudioPresentation>

List

GetCachedDuration()

public long GetCachedDuration()

Returns

long

long

GetCasInfo(int)

public MediaExtractor.CasInfo GetCasInfo(int arg0)

Parameters

arg0 int

int

Returns

MediaExtractor.CasInfo

MediaExtractor.CasInfo

GetDrmInitData()

public DrmInitData GetDrmInitData()

Returns

DrmInitData

DrmInitData

GetLogSessionId()

public LogSessionId GetLogSessionId()

Returns

LogSessionId

LogSessionId

GetMetrics()

public PersistableBundle GetMetrics()

Returns

PersistableBundle

PersistableBundle

GetPsshInfo()

public Map<UUID, byte[]> GetPsshInfo()

Returns

Map<UUID, byte[]>

Map

GetSampleCryptoInfo(CryptoInfo)

public bool GetSampleCryptoInfo(MediaCodec.CryptoInfo arg0)

Parameters

arg0 MediaCodec.CryptoInfo

MediaCodec.CryptoInfo

Returns

bool

bool

GetSampleFlags()

public int GetSampleFlags()

Returns

int

int

GetSampleSize()

public long GetSampleSize()

Returns

long

long

GetSampleTime()

public long GetSampleTime()

Returns

long

long

GetSampleTrackIndex()

public int GetSampleTrackIndex()

Returns

int

int

GetTrackCount()

public int GetTrackCount()

Returns

int

int

GetTrackFormat(int)

public MediaFormat GetTrackFormat(int arg0)

Parameters

arg0 int

int

Returns

MediaFormat

MediaFormat

HasCacheReachedEndOfStream()

public bool HasCacheReachedEndOfStream()

Returns

bool

bool

ReadSampleData(ByteBuffer, int)

public int ReadSampleData(ByteBuffer arg0, int arg1)

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 int

int

Returns

int

int

Release()

public void Release()

SeekTo(long, int)

public void SeekTo(long arg0, int arg1)

Parameters

arg0 long

long

arg1 int

int

SelectTrack(int)

public void SelectTrack(int arg0)

Parameters

arg0 int

int

SetDataSource(Context, Uri, Map<String, String>)

public void SetDataSource(Context arg0, Uri arg1, Map<String, String> arg2)

Parameters

arg0 Context

Context

arg1 Uri

Uri

arg2 Map<String, String>

Map

Exceptions

IOException

SetDataSource(AssetFileDescriptor)

public void SetDataSource(AssetFileDescriptor arg0)

Parameters

arg0 AssetFileDescriptor

AssetFileDescriptor

Exceptions

IOException
IllegalArgumentException
IllegalStateException

SetDataSource(MediaDataSource)

public void SetDataSource(MediaDataSource arg0)

Parameters

arg0 MediaDataSource

MediaDataSource

Exceptions

IOException

SetDataSource(FileDescriptor)

public void SetDataSource(FileDescriptor arg0)

Parameters

arg0 FileDescriptor

FileDescriptor

Exceptions

IOException

SetDataSource(FileDescriptor, long, long)

public void SetDataSource(FileDescriptor arg0, long arg1, long arg2)

Parameters

arg0 FileDescriptor

FileDescriptor

arg1 long

long

arg2 long

long

Exceptions

IOException

SetDataSource(String)

public void SetDataSource(String arg0)

Parameters

arg0 String

String

Exceptions

IOException

SetDataSource(String, Map<String, String>)

public void SetDataSource(String arg0, Map<String, String> arg1)

Parameters

arg0 String

String

arg1 Map<String, String>

Map

Exceptions

IOException

SetLogSessionId(LogSessionId)

public void SetLogSessionId(LogSessionId arg0)

Parameters

arg0 LogSessionId

LogSessionId

SetMediaCas(MediaCas)

[Obsolete("Deprecated in JVM")]
public void SetMediaCas(MediaCas arg0)

Parameters

arg0 MediaCas

MediaCas

UnselectTrack(int)

public void UnselectTrack(int arg0)

Parameters

arg0 int

int