ion-sfu update offer to client. but the offer is longer and longer as the participant come and leave
r1a2y3 opened this issue · comments
r1a2y3 commented
- start ion-sfu server.
go build ./cmd/signal/json-rpc/main.go && ./main -c config.toml
- disable video and enable audio in examples/pubsubtest/main.js to publish and subscribe audio
- open twice index.html. one publish and one subscribe. and the subscriber will receive offer from ion-sfu
- open more and more pages and publish audio. the subscriber receives more and more mediaSection in offer
- close those publisher one by one. the subscriber receieves offers but the count of mediaSection don't decrease, but those closed with a=inactive.
Apart from the network cost while negotiating sdp, are there any disadvantages to longer and longer offers?
I don't known why don't remove those media section directly. Could you please help confirm why? Thanks a lot!
OrlandoCo commented
Hello @r1a2y3, thats the default behavior of webrtc, before we have experimented with recycling transceivers, but different browsers behaved different causing issues.
So besides the fact that you are getting big SDP there is no other side effect.
r1a2y3 commented
Hello @OrlandoCo ,thanks for your patient answer.
btw, I experimented with Google Meet. It won't get a big SDP while participants come and leave. So I think there may have a solution to resolve it.
In a larger meeting. the big SDP may have tens of thousands lines, it's Intolerable and inconvenient to log out and troubleshoot.