livekit-android-sdk
2.10.0
SDK
livekit-android-sdk
/
io.livekit.android.webrtc
/
CustomVideoEncoderFactory
Custom
Video
Encoder
Factory
open
class
CustomVideoEncoderFactory
(
sharedContext
:
EglBase.Context
?
,
enableIntelVp8Encoder
:
Boolean
,
enableH264HighProfile
:
Boolean
,
forceSWCodec
:
Boolean
=
false
,
forceSWCodecs
:
List
<
String
>
=
listOf("VP9")
)
:
VideoEncoderFactory
Members
Constructors
Custom
Video
Encoder
Factory
Link copied to clipboard
constructor
(
sharedContext
:
EglBase.Context
?
,
enableIntelVp8Encoder
:
Boolean
,
enableH264HighProfile
:
Boolean
,
forceSWCodec
:
Boolean
=
false
,
forceSWCodecs
:
List
<
String
>
=
listOf("VP9")
)
Functions
create
Encoder
Link copied to clipboard
open
override
fun
createEncoder
(
videoCodecInfo
:
VideoCodecInfo
)
:
VideoEncoder
?
get
Encoder
Selector
Link copied to clipboard
open
fun
getEncoderSelector
(
)
:
VideoEncoderFactory.VideoEncoderSelector
get
Implementations
Link copied to clipboard
open
fun
getImplementations
(
)
:
Array
<
VideoCodecInfo
>
get
Supported
Codecs
Link copied to clipboard
open
override
fun
getSupportedCodecs
(
)
:
Array
<
VideoCodecInfo
>
set
Force
SWCodec
Link copied to clipboard
fun
setForceSWCodec
(
forceSWCodec
:
Boolean
)
Set to true to force software codecs.
set
Force
SWCodec
List
Link copied to clipboard
fun
setForceSWCodecList
(
forceSWCodecs
:
List
<
String
>
)
Set a list of codecs for which to use software codecs.