# VideoFileSource

class VideoFileSource(context: Context, path: Uri, loopMode: Boolean = true, onFinish: (isLoop: Boolean) -> Unit = {}) : VideoSource

Created by pedro on 2/3/24.

## Constructors

VideoFileSource
Link copied to clipboard
constructor(context: Context, path: Uri, loopMode: Boolean = true, onFinish: (isLoop: Boolean) -> Unit = {})

## Properties

created
Link copied to clipboard
var created: Boolean
fps
Link copied to clipboard
var fps: Int
height
Link copied to clipboard
var height: Int
rotation
Link copied to clipboard
var rotation: Int
surfaceTexture
Link copied to clipboard
var surfaceTexture: SurfaceTexture?
width
Link copied to clipboard
var width: Int

## Functions

getDuration
Link copied to clipboard
fun getDuration(): Double
getOrientationConfig
Link copied to clipboard
open override fun getOrientationConfig(): OrientationConfig
getTime
Link copied to clipboard
fun getTime(): Double
init
Link copied to clipboard
fun init(width: Int, height: Int, fps: Int, rotation: Int): Boolean
isRunning
Link copied to clipboard
open override fun isRunning(): Boolean
moveTo
Link copied to clipboard
fun moveTo(time: Double)
release
Link copied to clipboard
open override fun release()
replaceFile
Link copied to clipboard
fun replaceFile(context: Context, uri: Uri)
setCodecErrorCallback
Link copied to clipboard
fun setCodecErrorCallback(codecErrorCallback: CodecErrorCallback?)
setExtractor
Link copied to clipboard
fun setExtractor(extractor: Extractor)
setLoopMode
Link copied to clipboard
fun setLoopMode(enabled: Boolean)
start
Link copied to clipboard
open override fun start(surfaceTexture: SurfaceTexture)
stop
Link copied to clipboard
open override fun stop()