client-sdk-android
client-sdk-android copied to clipboard
The setScreenShareEnabled(true) not work
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) ;
Screenshots
But remote side the screen not display.
The camera video display is normal
Device Info:
- Device: oneplus 11
- OS: android 14
- LiveKit SDK version: 1.5.3
Additional context Add any other context about the problem here.
@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?