# Media3Extractor

class Media3Extractor(context: Context) : Extractor

Created by pedro on 30/10/24.

Extractor implementation using media3 library.

Note: Using this implementation the library can't extract the duration so we are using MediaMetadataRetriever to do it.

## Constructors

Media3Extractor
Link copied to clipboard
constructor(context: Context)

## Functions

advance
Link copied to clipboard
open override fun advance(): Boolean
getAudioInfo
Link copied to clipboard
open override fun getAudioInfo(): AudioInfo
getFormat
Link copied to clipboard
open override fun getFormat(): MediaFormat
getSleepTime
Link copied to clipboard
open override fun getSleepTime(ts: Long): Long
getTimeStamp
Link copied to clipboard
open override fun getTimeStamp(): Long
getVideoInfo
Link copied to clipboard
open override fun getVideoInfo(): VideoInfo
initialize
Link copied to clipboard
open override fun initialize(fileDescriptor: FileDescriptor)
open override fun initialize(path: String)
open override fun initialize(context: Context, uri: Uri)
readFrame
Link copied to clipboard
open override fun readFrame(buffer: ByteBuffer): Int
release
Link copied to clipboard
open override fun release()
seekTo
Link copied to clipboard
open override fun seekTo(time: Long)
selectTrack
Link copied to clipboard
open override fun selectTrack(type: MediaFrame.Type): String