ionorg / ion-sfu

Pure Go WebRTC SFU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ion-sfu update offer to client. but the offer is longer and longer as the participant come and leave

r1a2y3 opened this issue · comments

  1. start ion-sfu server.
go build ./cmd/signal/json-rpc/main.go && ./main -c config.toml
  1. disable video and enable audio in examples/pubsubtest/main.js to publish and subscribe audio
  2. open twice index.html. one publish and one subscribe. and the subscriber will receive offer from ion-sfu
  3. open more and more pages and publish audio. the subscriber receives more and more mediaSection in offer
  4. close those publisher one by one. the subscriber receieves offers but the count of mediaSection don't decrease, but those closed with a=inactive.

inactive-issues

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!

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.

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.