client-sdk-react-native icon indicating copy to clipboard operation
client-sdk-react-native copied to clipboard

Screen share track still created when broadcast button is canceled

Open davidliu opened this issue 1 year ago • 1 comments

We are experiencing an issue with screen sharing on iOS using React Native.

Initially, screen sharing starts successfully after tapping "Start Broadcast." It works fine every time when we tap "Start Broadcast" and receive the tracks. However, if we tap outside the broadcast handler, the popup closes, and screen sharing does not start. Although we receive a successful track from LiveKit, it is not initiated.

The problem begins here: we use this successful track for our custom logic to start/stop tracks of other users or send some data. However, this case is a false positive—screen sharing has not started, but we still receive the track.

Additionally, when we try to reconnect to the room afterward, we are unable to connect.

Framework: React Native ("0.74.1", "0.71.8") Platform: iOS

Dependencies:

"@livekit/react-native": "^2.1.1"
"@livekit/react-native-webrtc": "^114.1.4"
"livekit-client": "2.1.5"

Slack Message

davidliu avatar Jun 26 '24 04:06 davidliu

hey @davidliu any update on this one?

I am still experiencing the issue on: "@livekit/react-native": "^2.7.4", "@livekit/react-native-webrtc": "^125.0.9",

Rhett-Williams avatar Jul 30 '25 14:07 Rhett-Williams