You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@State var darwinNotificationCenterObservation: DarwinNotificationObservation?
// Define an async function to perform the async task
func performAsyncTask() async {
do {
try await room.localParticipant.setScreenShare(enabled: false)
} catch {
print("An error occurred while updating screen share")
}
}
// function that matches the C function pointer type
func notificationCallback() {
// Dispatch to handle async code
DispatchQueue.global().async {
Task {
await performAsyncTask()
}
}
}
func setupNotifications() {
// We need to store the value in variable/state to keep notification active.
darwinNotificationCenterObservation = DarwinNotificationCenter.shared.addObserver(name: "iOS_BroadcastStopped", callback: notificationCallback)
}
Describe the bug
Even after stopping screen share by pressing indicator on native time doesn't make isScreenShareEnabled() to return false.
SDK Version
2.0.12
iOS/macOS Version
iOS 17.5.1
Xcode Version
15.4
Swift 5
Steps to Reproduce
Expected behavior
Expect
room.localParticipant.isScreenShareEnabled()
to returnfalse
buttrue
is returned.Screenshots
If applicable, add screenshots to help explain your problem.
Logs
Please provide logs if you can.
The text was updated successfully, but these errors were encountered: