cnderrauber
e2735f3bd1
remove dd debug logs ( #3334 )
2025-01-15 13:27:21 +08:00
cnderrauber
6a5d6a282b
Log sdps when negotiate failed ( #3325 )
2025-01-13 13:38:32 +08:00
cnderrauber
f08fc581e0
disable sctp zero checksum for unknown sdk ( #3321 )
2025-01-10 11:55:28 +08:00
cnderrauber
f846c7719b
Disable SCTP zero checksum for old go client ( #3319 )
...
Old go-sdks with old pion/sctp version can't
process unknown parameters.
2025-01-09 13:22:23 +08:00
cnderrauber and boks1971
384e21abc0
vp8 temporal layer selection with dependency descriptor ( #3302 )
...
* vp8 with dd
* make temporal layer selection work with DD
* fix test
---------
Co-authored-by: boks1971 <raja.gobi@tutanota.com >
2025-01-03 21:26:03 +08:00
cnderrauber
3ba379ab4c
Disable av1 for safari ( #3284 )
...
M3 chip/iphone15 pro has av1 enabled for safari but
its hardware decoder can't decode av1 svc encoding.
2024-12-23 10:49:17 +08:00
cnderrauber
8fa1127724
Disable data channel throttle by default ( #3281 )
...
* Disable data channel throttle by default
* data race
* err type
2024-12-21 12:08:54 +08:00
cnderrauber
08b58a23af
Refine data slow test ( #3278 )
2024-12-20 10:58:00 +08:00
cnderrauber
99364f39d0
Keep negotiated codec parameters in Downtrack.Bind ( #3271 )
...
the context's codec parameters will be set to the binded codec after Bind
2024-12-19 16:16:09 +08:00
cnderrauber
90804c553e
more relax on subscriber bitrates ( #3265 )
2024-12-18 17:02:06 +08:00
cnderrauber
713e67cd52
Thottle the publisher data channel sending when subscriber is slow ( #3255 )
...
* Thottle the publisher data channel sending when subscriber is slow
Avoid the publisher overwhelm the sfu data channel buffer when
the subscriber has lower receive bitrates. It will drop message
if the subscriber is considered too slow to block the entire room.
* Enable nack in mediaengine and disable it in transceiver as need
pion doesn't support per transciver codec configuration, so the nack of this session will be disabled
forever once it is first disabled by a transceiver.
https://github.com/pion/webrtc/pull/2972
2024-12-18 10:51:34 +08:00
cnderrauber
b684da380e
log frame number jump on dd structure updating ( #3261 )
2024-12-17 17:31:05 +08:00
cnderrauber
6df339b77c
Don't SetCodecPreferences for video transceiver ( #3249 )
...
The SetCodecPrefrences function will save codecs
to the transceiver and if the primary codec is not
support by the client, the saved codec will generate
rtx codec for the unsupported codec cause corrupted
sdp.
2024-12-13 21:12:30 +08:00
cnderrauber
499fbd2a1d
More test cases for fire track by sdp ( #3248 )
...
* More test cases for fire track by sdp
* name
2024-12-13 21:02:26 +08:00
cnderrauber
5dd6858acf
Don't wait rtp packet to fire track ( #3246 )
...
* Don't wait rtp packet to fire track
Create track from sdp instead of first rtp packet,
it is consistent with the browser behavior and
will accelerate the track publication.
* fix test
2024-12-13 15:06:14 +08:00
cnderrauber
c76fb0bcf4
Disable close by dtls to fix migration ( #3220 )
...
Pion v4 imports new feature that will close
peerconnection on dtls.close to detects
remote peer closed quickly, it breaks the
session migration.
2024-11-30 09:20:45 +08:00
cnderrauber
3372e6e285
pion v4.0.4 ( #3217 )
2024-11-29 10:37:12 +08:00
cnderrauber
54f9f7de51
upgrade to pion/webrtc v4 ( #3213 )
2024-11-28 16:05:38 +08:00
cnderrauber
526985f109
don't return video/rtx to client ( #3142 )
2024-10-26 22:29:04 +08:00
cnderrauber
ca77df8212
warn for multiple dd ext ( #3135 )
...
* warn for multiple dd ext
* unused
2024-10-24 16:59:24 +08:00
cnderrauber
b30cc9066a
Drop remote candidates based on lite option ( #3127 )
...
Only drop remote candidates if remote peer is
not lite and local peer is lite.
2024-10-22 17:53:40 +08:00
cnderrauber
9147120915
Exclude session start time from publishing time ( #3089 )
2024-10-12 10:19:33 +08:00
cnderrauber
76bc112649
Don't return bind error on unsupport codec ( #3085 )
...
pion will not start transports if Bind fails at first answer
2024-10-11 14:59:54 +08:00
cnderrauber
cf59267631
Add counter for pub&sub time metrics ( #3084 )
...
* Add counter for pub&sub time metrics
The pub&sub shows large value in migration related case like
muted/disabled migration, the subscription time depends on
the time when publisher unmute the track(sending rtp packet
after migration), add a counter to distinguish since we
can't control the time in such cases and the first subscription
attemps also is more meaningful than those cases.
* Add info log for high publish delay
2024-10-11 12:07:24 +08:00
cnderrauber
c8dbe8e977
reset subscription time when downtrack closed and expect resume ( #3083 )
2024-10-10 16:06:44 +08:00
cnderrauber
85c653f665
dd selector debug logs ( #3082 )
2024-10-10 12:37:28 +08:00
cnderrauber
64d89dc2f8
Use difference debounce interval in negotiation ( #3078 )
...
Transport will send offer immediately if last
negotiation is before debounce interval in #1929 ,
it will cost two negotiation for a/v tracks if a
pubisher publishes two tracks at same time like
screenshare or enable mic/camera. This change use
a small debounce interval in this case to avoid this issue.
2024-10-09 21:13:05 +08:00
cnderrauber
3a77f2c733
change comment of disable fast negotiation for migration ( #3053 )
2024-09-27 15:18:34 +08:00
cnderrauber
73900be59d
Set mime_type for tracks don't have simulcast_codecs ( #3040 )
...
go sdk don't have simucalst_codecs set could cause
partial track info broadcast to other nodes.
2024-09-24 15:36:08 +08:00
cnderrauber
341d1e512c
change bind log to debug ( #3033 )
2024-09-23 12:05:38 +08:00
cnderrauber
eed925fddf
avoid race condition on downtrack.Codec ( #3032 )
2024-09-22 14:27:26 +08:00
cnderrauber
978db00034
Add sdk, participant_kind to pub sub metrics ( #3023 )
...
* exclude go client from track publication metric
* add sdk,participant_kind lables
* fix test
2024-09-19 10:42:47 +08:00
cnderrauber
3ecd03fa31
Use new track id for republishing ( #3020 )
...
* Use new track id for republishing
Always generates new track id for track publishing
to make the behavior more consistent. A republishing of
clien track will be considered as a new track publication
and always trigger trackUnpublished & trackPublished event
on subscriber side.
* remove test
2024-09-19 09:17:12 +08:00
cnderrauber
0c002b8675
exclude sip client from track publish metric ( #3007 )
2024-09-17 09:42:21 +08:00
cnderrauber
3cf70b2198
Disable fast negotiation temporarily after migration ( #2991 )
2024-09-10 00:16:09 +08:00
cnderrauber
95fa55eb5d
Update pion to fix transceiver reuse ( #2983 )
2024-09-06 23:32:02 +08:00
cnderrauber
5ae88c267e
CacheDowntrack synchronously on DownTrack.Close ( #2981 )
...
Avoid repeat adding local/remote downtracks when migration
after #2970 allow remote track can be subscribed before resolved.
2024-09-05 22:00:38 +08:00
cnderrauber
08b8db9eb1
Start negotiate immediately if last one is before debouce interval ( #2979 )
2024-09-05 15:37:30 +08:00
cnderrauber
4792e7e134
Revert "Add tracksubscribed event on downtrack added ( #2934 )" ( #2975 )
...
This reverts commit 8b47218270 .
2024-09-04 10:42:18 +08:00
cnderrauber
d6ce2338e2
Use correct subscriber id in dynacast notify ( #2972 )
2024-09-03 11:35:52 +08:00
cnderrauber
efa85221b3
Negotiate downttrack for subscriber before receiver is ready ( #2970 )
...
* Negotiate downttrack for subscriber before receiver is ready
This change will save 1 round sdp negotiation time for
subscribing to simulcast-codec or remote node track
* solve comment
* Fix simulcast-codec case
2024-09-02 14:10:14 +08:00
cnderrauber
28417ef599
fix republish failed ( #2966 )
...
* fix republish failed
parallel negotiation would cause remote webrtc track consume
pending republished track then failed.
* comment
2024-08-29 15:41:32 +08:00
cnderrauber
16896e4d66
Add FastPublish in JoinResponse ( #2964 )
...
Set FastPublish in JoinResponse for participant can publish
and no ice fallback setting.
2024-08-28 12:00:28 +08:00
cnderrauber
bde702d9c9
Don't remove DD extesion for simucalst codecs ( #2960 )
2024-08-26 17:52:33 +08:00
cnderrauber
947e8f5909
Speed up track publication ( #2952 )
...
* speed up track publication
Add metrics for track publication and subscription
Return EnabledCodecs in JoinResponse so client can
choose codec without server side codec fallback
Cache remote webrtc track without AddTrackRequest to
let client send publisher offer before AddTrackRequest response
* go mod
* clean code
2024-08-23 18:38:32 +08:00
cnderrauber
15bf920f2c
fix framenumber test ( #2942 )
2024-08-19 16:35:38 +08:00
cnderrauber
8b47218270
Add tracksubscribed event on downtrack added ( #2934 )
...
will remove this once the remote node has tracksubscribed
event sent.
2024-08-14 10:19:01 +08:00
cnderrauber
a8730b04b8
move TrackSubscribed trigger to MediaSubscription ( #2916 )
2024-08-07 22:30:52 +08:00
cnderrauber
5e4c6d46fb
rename log ( #2906 )
2024-08-05 13:46:56 +08:00
cnderrauber
f6f6cca133
don't push 0 ssrc probing packets to pending queue ( #2888 )
2024-07-23 17:58:04 +08:00
cnderrauber
0c5b5537b2
Don't create DDParser for non-svc codec ( #2883 )
2024-07-19 10:52:27 +08:00
cnderrauber
e3597d780d
Update pion to handle different extensions in two media section ( #2878 )
...
Also remove the code to disable DD extension for vp8/h264, it
cause DD can't be processed if the first video track is non-svc
codec.
2024-07-18 14:49:04 +08:00
cnderrauber
e7424e5a8e
don't send unknown signal message to rust sdk with protocol 9 ( #2860 )
...
rust sdk can't handle unknown message (ErrorResponse and
TrackSubscribed)
2024-07-16 00:03:54 +05:30
cnderrauber
5e1b18dab3
Add option to disable ice lite ( #2862 )
...
Some sfu's ice agent implementation has problem
to establish ice connection with lite ice agent,
add option to let client to disble it in server side.
2024-07-15 15:11:46 +08:00
cnderrauber
a995c71f84
Fallback to primary encoding if redundant block overflow ( #2858 )
...
* Fallback to primary encoding if redundant block overflow
* revert mtu change
2024-07-12 16:39:54 +08:00
cnderrauber
deee816d0a
Forward correct payload type for mixed up red/primary payload ( #2847 )
...
* Forward correct payload type for mixed up red/primary payload
* empty line
* log field & test case
2024-07-09 23:04:47 +08:00
cnderrauber
4e9ab46091
use correct payload type for red primary encoding ( #2845 )
2024-07-09 10:30:05 +08:00
cnderrauber
70fbba2844
Add track subscribed notification to publisher ( #2834 )
...
* Add track subscribed notification to publisher
* update go mod
2024-07-05 21:57:03 +08:00
cnderrauber
7a5c90dc01
log non-trickle candidate in details ( #2832 )
...
* log non-trickle candidate in details
* fix test
2024-07-03 14:16:58 +08:00
cnderrauber
7dff092285
update sctp performance ( #2831 )
...
* update sctp performance
* go mod tidy
2024-07-02 14:43:44 +08:00
cnderrauber
6e4b0c20d1
update dep for fixing bucket grow ( #2785 )
2024-06-13 10:13:18 +08:00
cnderrauber
908baeb942
initialize bucket size by publish bitrates ( #2763 )
2024-06-06 14:31:20 +08:00
cnderrauber
b90ade81da
add log for unexpected jitter ( #2752 )
2024-06-03 15:12:53 +08:00
cnderrauber
526d3a017e
ignore abnormal forward delay ( #2748 )
2024-05-31 10:23:37 +08:00
cnderrauber
7ed1284b96
report average forward metrics ( #2737 )
...
* report average forward metrics
* unused parameter
2024-05-28 17:03:18 +08:00
cnderrauber
2288e402ac
register forward metrics ( #2735 )
2024-05-27 15:47:01 +08:00
cnderrauber
e6aa36fdd6
Add forward stats ( #2725 )
...
* Add forward metrics
* ignore packets was not forwarded
* rename
2024-05-24 17:43:28 +08:00
cnderrauber
cfa82c6ad4
increase protocol version to support optional publisher datachannel ( #2693 )
2024-04-28 15:09:24 +08:00
cnderrauber
90de06ce02
Make datachannel optional for publisher ( #2686 )
2024-04-26 15:24:41 +08:00
cnderrauber
b55038af03
Detach subscriber datachannel to save memory ( #2680 )
...
Sfu don't read message from subscriber datachannel, detach
it to bypass the readLoop can save 128KB memory and 2 goroutines per
participant.
2024-04-24 16:26:07 +08:00
cnderrauber
f239f8bff1
Fix SubParticipant twice when paticipant left ( #2672 )
2024-04-23 16:09:02 +08:00
cnderrauber
8eb86f1077
Don't log dd invalid template index ( #2664 )
...
If the first packet of keyframe has template structure is lost then
subsequent packets rely on it will report invalid tempalte error which
is expected.
2024-04-19 16:48:36 +08:00
cnderrauber
0b3587b10d
Disable dynamic playout delay for screenshare track ( #2663 )
...
Screenshare video has inaccuracy jitter due to its low frame rate and bursty traffic
2024-04-19 15:25:48 +08:00
cnderrauber
196fed605e
Limit playout delay change for high jitter ( #2635 )
...
* Limit playout delay change for high jitter
* fix test
2024-04-08 21:50:50 +08:00
cnderrauber
0a35e59ebd
Replace sleep with sync.Cond to reduce jitter ( #2603 )
2024-03-29 17:24:31 +08:00
cnderrauber
95df9737a6
Fix twcc has chance to miss for firefox simulcast rtx ( #2601 )
2024-03-29 09:05:53 +08:00
cnderrauber
bc5fc17bdc
Log high jitter case ( #2602 )
2024-03-28 15:59:03 +08:00
cnderrauber
95001dfe54
remove warning log of unexpected rtcp fb ( #2546 )
...
* remove warning log of unexpected rtcp fb
* Add log for high playout delay
* don't create delay controller for audio
2024-03-05 10:35:28 +08:00
cnderrauber
8c5d8730b1
Check ssrc for rtcp packets ( #2541 )
...
* Check ssrc for rtcp packets
* Add warn log if rtcp fb has unknown ssrc
2024-03-04 16:36:57 +08:00
cnderrauber and David Zhao
b58307f144
Support XR request/response for rtt calculation ( #2536 )
...
* Support XR request/response for rtt calculation
* Update pkg/sfu/downtrack.go
Co-authored-by: David Zhao <dz@livekit.io >
---------
Co-authored-by: David Zhao <dz@livekit.io >
2024-03-03 12:34:49 +08:00
cnderrauber
a435368278
use dynamic bucket size ( #2524 )
2024-02-28 16:24:23 +08:00
cnderrauber
20ac7fb416
Confirm migrated tracks info before declare migration completed ( #2522 )
...
* Confirm migrated tracks info before declare migration completed
* log expected mid
2024-02-28 12:16:34 +08:00
cnderrauber
90ab3fdf68
Reduce FrameIntegrityChecker's allocation ( #2504 )
2024-02-23 13:10:58 +08:00
cnderrauber
787af0e84c
update pion/ice for tcpmux memory improvement ( #2500 )
2024-02-22 11:55:37 +08:00
cnderrauber
628b7c7024
Fix nil bufferfactory in test ( #2495 )
2024-02-20 17:06:34 +08:00
cnderrauber
91c320770b
Replace reflect.Equal with generic sliceEqual ( #2494 )
...
* Replace reflect.Equal with generic sliceEqual
* Use library function
2024-02-20 11:57:38 +08:00
cnderrauber
af0a8fbbbc
add log for extpacket accumulated ( #2454 )
2024-02-06 21:38:36 +08:00
cnderrauber
be87a1b6f0
Support rtx for publisher ( #2452 )
...
* Support rtx for publisher
* remote log
* solve comment
2024-02-06 21:30:37 +08:00
cnderrauber
9b4ba2d41d
use default max playout delay as chrome ( #2411 )
2024-01-26 13:32:54 +08:00
cnderrauber
995fddbaf9
Add dynamic playout delay if PlayoutDelay enabled in the room ( #2403 )
...
* Add dynamic playout delay
* type for state
2024-01-26 09:33:35 +08:00
cnderrauber
5b4848e772
remove dd debug logs ( #2387 )
2024-01-16 12:07:29 +08:00
cnderrauber
fcee6edcb2
change svc frame number log to debug ( #2347 )
2023-12-26 11:40:34 +08:00
cnderrauber
a150eaf697
Fix mid info lost when migrating multi-codec simulcast track ( #2315 )
...
* Fix mid info lost when migrating multi-codec simulcast track
* update pion
2023-12-15 00:02:27 +08:00
cnderrauber
b0b7489b0e
Fix svc freeze caused by key frame id wrap around ( #2302 )
...
* Fix svc freeze caused by key frame id wrap around
* rename
2023-12-07 12:53:17 +08:00
cnderrauber
e1cc9d6b3c
Fix log marshal error ( #2295 )
2023-12-06 00:08:48 +08:00
cnderrauber and David Zhao
0f1c1ec224
clean dd log ( #2275 )
...
* clean dd log
* Implemented Raja's feedback
---------
Co-authored-by: David Zhao <dz@livekit.io >
2023-11-29 12:12:29 -08:00
cnderrauber
302facc60d
Reject migration if codec mismatch with published tracks ( #2225 )
...
* Reject migrated/published track mismatch codec with track info
* Check potential codecs
* Issue full connect if mismatch
* fix codec finding
2023-11-06 21:11:39 +08:00
cnderrauber
f5047ab653
Check request layer for DD selector sync ( #2219 )
2023-11-03 18:40:36 +08:00
cnderrauber
f247b68ed6
Make sure dd selector uses correct keyframe to select packets ( #2218 )
...
* Make sure dd selector uses correct keyframe to select packets
* Fix test case
* remove unsed field
2023-11-03 17:49:02 +08:00
cnderrauber
9399fb2bfe
Only select alternative codec for video ( #2210 )
...
* Only select alternative codec for video
* Filter out empty mime
2023-11-01 19:45:44 +08:00