# BaseDecoder

abstract class BaseDecoder

#### Inheritors

AudioDecoder
VideoDecoder

## Constructors

BaseDecoder
Link copied to clipboard
constructor(decoderInterface: DecoderInterface)

## Properties

extractor
Link copied to clipboard
open var extractor: Extractor

## Functions

getDuration
Link copied to clipboard
open fun getDuration(): Double
getTime
Link copied to clipboard
open fun getTime(): Double
initExtractor
Link copied to clipboard
open fun initExtractor(fileDescriptor: FileDescriptor): Boolean
open fun initExtractor(filePath: String): Boolean
open fun initExtractor(context: Context, uri: Uri): Boolean
isLoopMode
Link copied to clipboard
open fun isLoopMode(): Boolean
isRunning
Link copied to clipboard
open fun isRunning(): Boolean
moveTo
Link copied to clipboard
open fun moveTo(time: Double)
reset
Link copied to clipboard
open fun reset(surface: Surface)
setCodecErrorCallback
Link copied to clipboard
open fun setCodecErrorCallback(codecErrorCallback: CodecErrorCallback)
setLoopMode
Link copied to clipboard
open fun setLoopMode(loopMode: Boolean)
start
Link copied to clipboard
open fun start()
stop
Link copied to clipboard
open fun stop()