Add subscription limits (#1629)

* Add subscription limits

* Add limit to ParticipantParams

* Don't change desired of subscription when reaching limits

* Add subscription limits config

* Revert comment

* solve comments
This commit is contained in:
cnderrauber
2023-04-20 14:15:30 +08:00
committed by GitHub
parent 422a28551e
commit 09af509edb
7 changed files with 220 additions and 44 deletions
+6
View File
@@ -261,3 +261,9 @@ keys:
# num_tracks: -1
# # defaults to 1 GB/s, or just under 10 Gbps
# bytes_per_sec: 1_000_000_000
# # how many tracks (audio / video) that a single participant can subscribe at same time.
# # if the limit is exceeded, subscriptions will be pending until any subscribed track has been unsubscribed.
# # value less or equal than 0 means no limit.
# subscription_limit_video: 0
# subscription_limit_audio: 0