livekit / client-sdk-swift

LiveKit Swift Client SDK. Easily build live audio or video experiences on iOS, macOS, tvOS, and visionOS.
https://livekit.io
Apache License 2.0
197 stars 97 forks source link

turn off shareScreen,but RPSystemBroadcastPickerView Cann't be closed #326

Closed monkeyttttt closed 8 months ago

monkeyttttt commented 8 months ago

when turn off shareScreen, the Broadcast is still exist WechatIMG42

IBAction func shareOrNot(_ sender: UIButton) { sender.isSelected = !sender.isSelected room.localParticipant?.setScreenShare(enabled: sender.isSelected) if(!sender.isSelected){ let publications = localParticipant?.localVideoTracks.filter({$0.source == .screenShareVideo}) if let localTrackPublication = publications?.first{ localTrackPublication.mute().then{[weak self] in self?.localParticipant?.unpublish(publication: localTrackPublication).then{

                }
            }
        }
    }
}

Originally posted by @monkeyttttt in https://github.com/livekit/client-sdk-swift/issues/223#issuecomment-1913856772

@hiroshihorie @dsa

GiauHuynhWiki commented 8 months ago

Hi @monkeyttttt can I get in touch with you? I have some problems with screen sharing ios.

monkeyttttt commented 8 months ago

Hi @monkeyttttt can I get in touch with you? I have some problems with screen sharing ios.

What problem

GiauHuynhWiki commented 8 months ago
Screenshot 2024-01-30 at 13 38 54

My share screen track works only in-app, when I minimize to home, the screen share track (viewed from other device) will pause, and when I back to app again, the screen share track continues to work!!!

I think cause is I setup Broadcast Upload Extension wrong way.

GiauHuynhWiki commented 8 months ago

Is there any way to make sure I have it set up Broadcast Upload Extension correctly? Seem it's can't debug, print... directly.

monkeyttttt commented 8 months ago
Screenshot 2024-01-30 at 13 38 54

My share screen track works only in-app, when I minimize to home, the screen share track (viewed from other device) will pause, and when I back to app again, the screen share track continues to work!!!

I think cause is I setup Broadcast Upload Extension wrong way

you can get it,If config useBroadcastExtension right in RoomOption

GiauHuynhWiki commented 8 months ago
Screenshot 2024-01-30 at 14 36 53

Hi @monkeyttttt , extremely grateful to you, after create RoomOptions then add it to room.connect. It works perfectly now. You made my day, bro.

monkeyttttt commented 8 months ago

replace sdk 1.0.13,the bug have been resolved