Raja Subramanian
82e1c391a4
Fix time stamp jump on layer switch ( #543 )
2022-03-20 13:36:29 +05:30
Raja Subramanian
1d03a5a3b6
Lock temporal layers to target for non-temporal layer codecs also ( #542 )
2022-03-20 11:11:49 +05:30
Raja Subramanian
8c9c1fe837
Always do stats update and header extension processing ( #540 )
...
Also, use Errorw for tracking large gap to get a back trace.
2022-03-19 21:29:10 +05:30
Raja Subramanian
5a9da8bee2
Do not double count NACK miss in sfu.DownTrack ( #536 )
2022-03-19 11:10:58 +05:30
Raja Subramanian
ed00146937
Fix packets/packetRate mismatch ( #534 )
...
This still does not address root cause of large loss, but at least
does not display crazy thing like packets = 0, but packet rate is 45/s.
Also, RLock in ToString() as there are bits of structure used in
stringification.
2022-03-19 01:06:52 +05:30
Raja Subramanian
13083a143f
More logs ( #533 )
2022-03-19 00:38:22 +05:30
Raja Subramanian
d738424173
Catch a few edge cases in stream allocator. ( #532 )
...
* Catch a few edge cases in stream allocator.
- More useful logging
* fire probe cluster done callback only when there is an active cluster
2022-03-18 20:42:15 +05:30
Raja Subramanian
3ce4010e89
Fix bracket ( #531 )
2022-03-18 11:25:20 +05:30
Raja Subramanian
a709cc0ad7
Exempt layers in stream tracker ( #530 )
...
For now, exempt layer 0 from stream tracker declaring it stopped.
2022-03-18 11:17:48 +05:30
Raja Subramanian
64f82a6a73
Fix off by one packets expected ( #529 )
2022-03-18 10:03:09 +05:30
cnderrauber and boks1971
c6a35d3ff1
fix keyFrameRequestGeneration not exit after close ( #527 )
...
* fix keyFrameRequestGeneration not exit after close
* change to bound check
* Refactor stop key frame requester into a function
* Remove redundant key frame requester stop
Co-authored-by: boks1971 <raja.gobi@tutanota.com >
2022-03-17 18:50:07 +08:00
Raja Subramanian
dc6b3369f4
Minor clean up of unused stuff ( #525 )
2022-03-17 10:19:51 +05:30
Raja Subramanian
33f9726b79
Key frames ( #522 )
...
* Key frames
- Keep track of key frame stats
- Split out PLI from down track used for purpose of layer locking.
This will give us a good picture of down stream issues forcing a PLI.
- Use key frame requester whenever there is a layer lock required.
Not just the first key frame. With the synchronous thing, the counter
was just ridiculously high like 150 or something because of all
the initial padding packets. Also, use RTT in key frame requester.
* send first PLI before waiting
* Turn off key frame requester when disabled
* simplify
2022-03-16 19:55:12 +05:30
Raja Subramanian
f3368a567b
Use overridden packet loss ( #519 )
2022-03-16 11:36:54 +05:30
David Zhao
d498cccc05
Fixed panics with nil stats ( #517 )
2022-03-15 12:01:26 -07:00
Raja Subramanian
4d1cc82c89
Remove unused with move to RTPStats ( #516 )
2022-03-15 23:01:37 +05:30
Raja Subramanian
ae85e55fd4
Using RTPStats across the board ( #515 )
...
* WIP commit
* Clean up
2022-03-15 17:47:19 +05:30
Raja Subramanian
80bd45f061
Some clean up ( #505 )
...
* WIP commit
* Refactor NTP time
* Clean up
* Update lk protocol
2022-03-11 22:40:49 +05:30
cnderrauber
a5fa54853f
fix potential nil rtcp packets cause rtcpSendWorker exit ( #504 )
2022-03-11 15:40:24 +08:00
Raja Subramanian
b6975bf7cd
Track source based stream tracker config ( #503 )
...
* Track source based stream tracker config
* SCREEN_SHARE_AUDIO is an audio source
2022-03-11 12:15:12 +05:30
Raja Subramanian
acbafa06f2
Log key frame and layer lock ( #496 )
2022-03-09 09:50:16 +05:30
cnderrauber
184fc93c6a
fix panic on close channel ( #495 )
2022-03-09 11:49:27 +08:00
cnderrauber
128199e634
don't send datatrack info to client ( #492 )
...
* don't send datatrack info to client
2022-03-08 17:05:26 +08:00
cnderrauber
608da4ba4b
stats for pli and bitrate ( #487 )
...
* stats for pli and bitrate
* solve comments
* return 0 if no pli sent
2022-03-07 14:59:01 +08:00
Raja Subramanian
c743d2ab3a
Warn on ops queue full ( #481 )
...
Pass logger so that we can log with proper context.
2022-03-02 19:08:07 +05:30
Raja Subramanian
bfa350451e
Start connection stats only after bind ( #480 )
2022-03-02 17:05:11 +05:30
cnderrauber
913ef3a646
Datatrack for data channel ( #476 )
...
* data track
2022-03-01 15:48:20 +08:00
Raja Subramanian
13e21e7c45
Callback queue for a couple of modules ( #468 )
...
* callback queue for stream tracker
* Ops queue for down track
* fix test
2022-03-01 09:55:13 +05:30
Raja Subramanian
2706dc130f
Replace sync/atomic usage with uber/atomic ( #471 )
2022-02-28 09:57:17 +05:30
Raja Subramanian
778d1aa141
utils.AtomicFlag -> atomic.Bool (#466 )
...
* Replacing hand rolled ion-sfu atomic with uber/atomic
* Remove another hand rolled atomic
* utils.AtomicFlag -> atomic.Bool
2022-02-25 12:19:49 +05:30
Raja Subramanian
0170cc1cb6
Staticcheck ( #464 )
...
Using `go get -u honnef.co/go/tools/cmd/staticcheck`
Uneaarthed a couple of real bugs
2022-02-25 12:04:08 +05:30
Raja Subramanian
5a4181b581
Replacing hand rolled ion-sfu atomic with uber/atomic ( #465 )
...
* Replacing hand rolled ion-sfu atomic with uber/atomic
* Remove another hand rolled atomic
2022-02-25 11:57:09 +05:30
Raja Subramanian
2959eebca8
Introducing OpsQueue ( #463 )
...
* Introducing OpsQueue
Creating a PR to get feedback on standardizing on this concept.
Can be used for callbacks.
Already a couple of places use this construct. Wondering if we
should standardize on this across the board.
Just changing one place to use the new struct. Another place
that I know of which uses this pattern is the telemetry package.
* atomic flag -> bool
2022-02-25 11:56:26 +05:30
Raja Subramanian
5a9459d0d5
Use the same wrap logic as bucket as it is more robust ( #460 )
...
Also rename n -> s for golang convention
2022-02-24 17:51:02 +05:30
Raja Subramanian
eed241cf7f
Refactor Bucket a little bit ( #459 )
2022-02-24 13:43:12 +05:30
Raja Subramanian
870190624e
Fix no-video with adaptive streaming ( #456 )
...
* Fix no-video with adaptive streaming
With a recent change to initialize max quality for subscriber
synchronously, a subsequent update at the same quality was
getting ignored. So, there was no message back to publisher
to start up video layers. Reproducible every time the subscriber
joined after all the layers of publishers was turned off.
While not pretty, for now, disable the check for quality match
on subscriber update. That disabling itself is fine as there is
another check for consolidated quality match before sending
a message to the publisher, but in general this area has shown
some shakiness and needs some work.
* Use notify function to set initial quality also
2022-02-22 10:34:18 -08:00
Raja Subramanian
f209e9319a
Reset channel observer in resetState ( #449 )
...
* Reset channel observer in resetState
* Spelling fix
2022-02-20 20:52:17 +05:30
Raja Subramanian
1e459e91cc
Stream priority ( #448 )
2022-02-19 13:17:55 +05:30
Raja Subramanian
dd4cec7724
Deleting unused code in stream allocator ( #447 )
2022-02-18 21:10:52 +05:30
Raja Subramanian
92d47ec421
Resync uses SSRC change. Reset to 0 when a resync is needed. ( #446 )
2022-02-18 16:26:27 +05:30
Raja Subramanian
babbfb37aa
Include NACK ratio in congestion control ( #443 )
...
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* Clean up
* Remove debug
* Remove unneeded change
* fix test
* Remove incorrect comment
* WIP commit
* Reset probe after estimate trends down
* WIP commit
* variable name change
* WIP commit
* WIP commit
* out-of-order test
* WIP commit
* Clean up
* more strict probe NACKs
2022-02-18 14:21:30 +05:30
Raja Subramanian
d04f4d12d1
Throttle RTX under certain conditions to prevent RTX storm ( #440 )
...
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* Clean up
* Remove debug
* Remove unneeded change
* fix test
* Remove incorrect comment
* WIP commit
* Reset probe after estimate trends down
* WIP commit
* variable name change
* Clean up
* Remove debug logs
* gofmt
2022-02-17 13:33:44 +05:30
Raja Subramanian
0bbed7f0bd
Use padding for probing ( #434 )
...
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* WIP commit
* Clean up
* Remove debug
* Remove unneeded change
* fix test
* Remove incorrect comment
* Reset probe after estimate trends down
2022-02-17 11:03:23 +05:30
Raja Subramanian
7b086ecf4c
Do not send RTCP if receiver is closed ( #438 )
2022-02-16 18:57:43 +05:30
Raja Subramanian
d69ee14696
Make stream tracker very forgiving for layer 0. ( #437 )
...
With screen sharing in Chrome 97, static content sends one packet
a second. Layer 0 stream tracker was configured to expect 2 per second.
Make it very relaxed so that one packet in two seconds declares layer 0
active.
2022-02-16 18:28:41 +05:30
cnderrauber
32d8af6da0
repeat request pli until first keyframe received ( #436 )
2022-02-16 19:57:55 +08:00
Raja Subramanian
c9cfb0d362
Need to return delta the new provisional layer takes. ( #433 )
2022-02-11 14:04:47 +05:30
Raja Subramanian
f3a6f58006
Use correct publisher id in stream state update ( #432 )
2022-02-11 12:09:48 +05:30
Raja Subramanian
a6338992e8
Stop forwarding on congestion ( #429 )
...
* WIP commit
* comment out debug stuff
2022-02-11 09:17:53 +05:30
Raja Subramanian
aff25afb70
NACKs with min/max intervals and exponential backoff retries ( #425 )
...
* NACKs with min/max intervals and exponential backoff retries
* simplify
2022-02-09 19:00:03 +05:30