This repository has been archived by the owner on Aug 25, 2021. It is now read-only.
Add/delete endpoints to/from already interconnected members #53
Labels
enhancement
Improvement of existing features or bugfix
k::api
Related to API (application interface)
Summary
When we trying to create interconnected
Endpoint
s forMember
s which already interconnected, panic will be throwed withPeerError::WrongState
error.Also if we delete some
Endpoint
from interconnectedMember
s theyPeer
s will be removed even if some interconnectedEndpoint
s still exists. This is related bug because we can fix it withEvent::TracksRemoved
. Steps to reproduce for this bug will be in discussion to this issue.Steps to reproduce
responder
andcaller
WebRtcPublishEndpoint
toresponder
:WebRtcPlayEndpoint
tocaller
:What is the current bug behavior?
Panic with
PeerError::WrongState
error should be thrown.What is the expected correct behavior?
New
MediaTrack
should be applied to thecaller
andresponder
.Relevant logs and/or screenshots
This panic you may find in
medea::signalling::room::Room::connect_endpoints
.Possible fixes
Implementation of
Event::TracksApplied
andEvent::TracksRemoved
should fix this bug.The text was updated successfully, but these errors were encountered: