client-sdk-android icon indicating copy to clipboard operation
client-sdk-android copied to clipboard

Problem with Share Screen on device

Open kobylynskyiv opened this issue 2 years ago • 2 comments

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

kobylynskyiv avatar Sep 22 '23 14:09 kobylynskyiv

remove videoEncoderFactory

wzJun1 avatar Sep 25 '23 02:09 wzJun1

Well, I wrote above that if I delete. It stops working on samsung

kobylynskyiv avatar Sep 26 '23 10:09 kobylynskyiv