# VideoDecoder

open class VideoDecoder : BaseDecoder

Created by pedro on 20/06/17.

## Constructors

VideoDecoder
Link copied to clipboard
constructor(videoDecoderInterface: VideoDecoderInterface, decoderInterface: DecoderInterface)

## Properties

extractor
Link copied to clipboard
open var extractor: Extractor
fps
Link copied to clipboard
open val fps: Int
height
Link copied to clipboard
open val height: Int
width
Link copied to clipboard
open val width: Int

## Functions

changeOutputSurface
Link copied to clipboard
open fun changeOutputSurface(surface: Surface)
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)
pauseRender
Link copied to clipboard
open fun pauseRender()
prepareVideo
Link copied to clipboard
open fun prepareVideo(surface: Surface): Boolean
reset
Link copied to clipboard
open fun reset(surface: Surface)
resumeRender
Link copied to clipboard
open fun resumeRender()
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()