-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancelling screen-sharing doesn't propagate to the receiver #98
Comments
Somehow I don't see any |
But I do see |
It looks like the negotiating is going completely awry here... We send an offer with the transceiver being |
Interesting! Can/should we do something regarding that on the SFU side? Currently, we don't munge the SDP in any way, we pass them directly to Pion. |
Possibly we can play with the transceivers though experience tells me the negotiation code probably isn't completely wrong and it's us screwing up somehow |
FWIW, the cause seems to be pion/webrtc#2226 |
Interesting. OT: It seems like the same issue is present in the |
Yeah, I think this is basically correct — as per that bug, pion basically just doesn't support tracks (or at least receivers) being paused and then reactivated. There is a further bug whereby the receiver is only stopped if the transceiver is set to inactive and not when it's set to recvonly (ie. sendonly from the SFU's PoV). In other words:
For now, I suggest we work around this by not re-using transceivers with the SFU. An interesting question is what livekit does here. |
So that's basically making EC use |
Not really - using sendonly vs sendrecv makes pion close the track, so fixes the screenshare getting stuck. Re-using transceivers is then necessary because pion can't restart the track once it's closed it. But yes, the effect is a new onTrakc every time screen sharing starts. |
Worked around client side in matrix-org/matrix-js-sdk#3120. @EnricoSchw was looking at the causes of this in pion. |
The main Issue that the track IDs can change or assigned to another transceiver we will solve with an custom media identifier. The resolution of this ticket depends on these adjustments element-hq/element-call#943 |
The text was updated successfully, but these errors were encountered: