client-sdk-android
client-sdk-android copied to clipboard
Problem with Share Screen on device
Hello everyone.
I have a problem with share screen, other users can't see my screen.
If you disable the videoEncoderFactory setting, then crash on
Samsung Galaxy A32 4/64 GB | MediaTek Helio G80
And if it is enabled, then screen sharing for all users does not work.
My settings:
room = LiveKit.create(appContext = App.getContext(),
options = RoomOptions(adaptiveStream = true, dynacast = true),
overrides = LiveKitOverrides(
audioOptions = AudioOptions(audioOutputType = AudioType.MediaAudioType()),
videoEncoderFactory = HardwareVideoEncoderFactory(
EglBase.create().eglBaseContext, false, true)))
room.connect(
url = url,
token = token,
roomOptions = RoomOptions(
audioTrackCaptureDefaults = LocalAudioTrackOptions(
noiseSuppression = false,
echoCancellation = false,
autoGainControl = false,
highPassFilter = false,
typingNoiseDetection = false
),
videoTrackCaptureDefaults = LocalVideoTrackOptions(
captureParams = VideoPreset169.H720.capture
),
videoTrackPublishDefaults = VideoTrackPublishDefaults(
videoCodec = VideoCodec.VP8.codecName
)
)
)
I also read some similar problem, where the solution is to disable this decoder, which causes me to crash
remove videoEncoderFactory
Well, I wrote above that if I delete. It stops working on samsung