livekit / client-sdk-swift

LiveKit Swift Client SDK. Easily build live audio or video experiences into your mobile app, game or website.
https://livekit.io
Apache License 2.0
173 stars 84 forks source link

About iOS Screen Share Bug #412

Open liuyang2211 opened 1 week ago

liuyang2211 commented 1 week ago

Describe the bug iOS Screen Share doesn't work very well

SDK Version 2.0.11

iOS/macOS Version 17.5.1

Steps to Reproduce 1、When I first called [self.room.localParticipant.setScreenShare(enabled: true)],The screen popped up "BroadcastExtPickerView" . I received a callback -【LiveKit】:LocalParticipant【xxx】didPublishTrack【video,screenShareVideo,Optional("started")】publication:【LocalTrackPublication(sid: TR_VSc3eCye5W3oLK, kind: Kind(rawValue: 1), source: Source(rawValue: 3))】But I didn't click "Start". When I click "Start" I can see screenshare steam. 2、When I turn off screen sharing,and called [self.room.localParticipant.setScreenShare(enabled: true)] nextTime. Absent popup "BroadcastExtPickerView", I received a callback -【LiveKit】: Participant【xxx】的【video,screenShareVideo】didUpdateIsMuted【Open】. But I can't see screenshare steam.

Expected behavior 1.I think the "delegate of didPublishTrack" should be after clicking the “Start” 2.I think every time called [self.room.localParticipant.setScreenShare(enabled: true)] Should popup "BroadcastExtPickerView"

Screenshots 2711719382773_ pic 2721719382774_ pic

Logs -【LiveKit】:LocalParticipant【xxx】didPublishTrack【video,screenShareVideo,Optional("started")】publication:【LocalTrackPublication(sid: TR_VSc3eCye5W3oLK, kind: Kind(rawValue: 1), source: Source(rawValue: 3))】 -【LiveKit】: Participant【xxx】的【video,screenShareVideo】didUpdateIsMuted【isMuted】 -【LiveKit】: Participant【xxx】的【video,screenShareVideo】didUpdateIsMuted【Open】