livekit / client-sdk-android

LiveKit SDK for Android
https://docs.livekit.io
Apache License 2.0
169 stars 68 forks source link

Problem with Share Screen on device #281

Open kobylynskyiv opened 11 months ago

kobylynskyiv commented 11 months ago

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

wzJun1 commented 11 months ago

remove videoEncoderFactory

kobylynskyiv commented 11 months ago

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