toggle menu
RootEncoder
androidJvm
switch theme
search in API
encoder
/
com.pedro.encoder.input.sources.video
/
VideoFileSource
Video
File
Source
class
VideoFileSource
(
context
:
Context
,
path
:
Uri
,
loopMode
:
Boolean
=
true
,
onFinish
:
(
isLoop
:
Boolean
)
->
Unit
=
{}
)
:
VideoSource
Created by pedro on 2/3/24.
Members
Constructors
Video
File
Source
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
surface
Texture
Link copied to clipboard
var
surfaceTexture
:
SurfaceTexture
?
width
Link copied to clipboard
var
width
:
Int
Functions
get
Duration
Link copied to clipboard
fun
getDuration
(
)
:
Double
get
Orientation
Config
Link copied to clipboard
open
override
fun
getOrientationConfig
(
)
:
OrientationForced
get
Time
Link copied to clipboard
fun
getTime
(
)
:
Double
init
Link copied to clipboard
fun
init
(
width
:
Int
,
height
:
Int
,
fps
:
Int
,
rotation
:
Int
)
:
Boolean
is
Running
Link copied to clipboard
open
override
fun
isRunning
(
)
:
Boolean
move
To
Link copied to clipboard
fun
moveTo
(
time
:
Double
)
release
Link copied to clipboard
open
override
fun
release
(
)
replace
File
Link copied to clipboard
fun
replaceFile
(
context
:
Context
,
uri
:
Uri
)
set
Loop
Mode
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
(
)