toggle menu
RootEncoder
androidJvm
switch theme
search in API
extra-sources
/
com.pedro.extrasources
/
CameraXSource
Camera
XSource
class
CameraXSource
(
context
:
Context
)
:
VideoSource
,
LifecycleOwner
Created by pedro on 16/2/24.
Members
Constructors
Camera
XSource
Link copied to clipboard
constructor
(
context
:
Context
)
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
lifecycle
Link copied to clipboard
open
override
val
lifecycle
:
Lifecycle
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
Orientation
Config
Link copied to clipboard
open
fun
getOrientationConfig
(
)
:
OrientationForced
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
release
Link copied to clipboard
open
override
fun
release
(
)
start
Link copied to clipboard
open
override
fun
start
(
surfaceTexture
:
SurfaceTexture
)
stop
Link copied to clipboard
open
override
fun
stop
(
)
switch
Camera
Link copied to clipboard
fun
switchCamera
(
)