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

The setScreenShareEnabled(true) not work

Open farsunset opened this issue 2 years ago • 1 comments

Describe the bug localParticipant.setScreenShareEnabled(true,shareIntent) not work. the data is callback intent and Foreground notication is showing.

To Reproduce Get shareIntent and call localParticipant.setScreenShareEnabled(true,shareIntent) ; image

Screenshots But remote side the screen not display. The camera video display is normal image

Device Info:

  • Device: oneplus 11
  • OS: android 14
  • LiveKit SDK version: 1.5.3

Additional context Add any other context about the problem here.

farsunset avatar Dec 07 '23 05:12 farsunset

@Override
            public void resumeWith(@NonNull Object o) {
                LocalTrackPublication publication = localParticipant.getTrackPublication(Track.Source.SCREEN_SHARE);
                if (publication != null && publication.getTrack() instanceof LocalScreencastVideoTrack){
                    ((LocalScreencastVideoTrack)publication.getTrack()).startCapture();
                }
            }

Is need to startCapture() on resumeWith?

farsunset avatar Dec 07 '23 05:12 farsunset