Commit Graph

1027 Commits

Author SHA1 Message Date
github-actions[bot]
139ffd4977 Version Packages (#1026)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.37.0 github.com/livekit/protocol@1.37.0 v1.37.0
2025-04-21 16:29:26 -07:00
Benjamin Pracht
62b2525e94 Add IMAGE_SUFFIX_NONE_OVERWRITE (#1052)
Add a ImageFileSuffix enum value to disable appending any image suffix and overwrite the generated image each time a new one is uploaded instead. Overwriting the image seems exclusive to having any suffix (particularly a timestamp suffix), so this seemed the best place to add it. OVERWRITE was added as part of the enum name to make it clear that data loss will occur with this option.
2025-04-21 10:36:46 -07:00
Raja Subramanian
7b6bf0e14f fix changeset (#1050) 2025-04-18 01:23:43 +05:30
Raja Subramanian
b1700ca6ad Apply ICE ufrag/password change to all media sections, different medi… (#1049)
* Apply ICE ufrag/password change to all media sections, different media sections cannot have different ice-ufrag/password

* function name

* test
2025-04-18 01:15:22 +05:30
Denys Smirnov
9de0150f3b Allow '_' in SIP headers. (#1048) 2025-04-16 10:45:59 +03:00
Denys Smirnov
d67a6a9f96 Allow updating SIP media encryption. (#1047) 2025-04-15 10:48:49 +03:00
Paul Wells
8643dc5a1d fix changeset (#1046) 2025-04-13 23:47:36 -07:00
Benjamin Pracht
b29f0a8bf5 Export GetEgressNotifyOptions (#1045) 2025-04-11 09:39:12 -07:00
Raja Subramanian
bb0bf8c9e6 Fix SDP fragment unmarshaling for IPv6 candidates. (#1044)
Also `ice-lite` does not have a second part. So, needs special handling.

Add tests for both.
2025-04-11 20:16:40 +05:30
Benjamin Pracht
b735b3b9ae Add IngressID and ResourceID attributes for the ingress participants (#1042) 2025-04-10 17:10:49 -07:00
Benjamin Pracht
9c8b99db90 Allow specifying extra webhooks in egress start requests (#1040) 2025-04-09 15:50:25 -07:00
cnderrauber
18e676b493 Forward grant (#1041)
* Revert "Require source|dest room admin when forwarding participant (#1027)"

This reverts commit 16e28eab22.

* Add ForwardDestRoom to VideoGrant

* rename & comments

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-09 14:33:48 +08:00
Raja Subramanian
0975d34864 Helpers to deal with SDP fragments. (#1039)
* Helpers to deal with SDP fragments.

WHIP uses SDP fragments which fail parsing using full-fledged SDP
libraries like pion/sdp, go-sdp.

Add utlities to deal with SDP fragments.

* generated protobuf

* SDP tests, mostly happy path, will add more later

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-09 00:07:14 +05:30
Denys Smirnov
c193b8d080 Fix SIP update when replacing array fields. (#1038) 2025-04-08 17:31:32 +03:00
Denys Smirnov
28de829f0d Add timeout parameter to SIP transfer API. (#1036) 2025-04-07 22:24:48 +03:00
Raja Subramanian
218e13187e Add CONNECTION_TIMEOUT disconnect reason (#1037)
* Add CONNECTION_TIMEOUT disconnect reason

* generated protobuf

* Create clever-jars-invent.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-07 23:45:17 +05:30
Paul Wells
9fce984fd0 allow calling promise.Resolve more than once (#1035)
* allow calling promise.Resolve more than once

* test

* Create blue-birds-add.md

* patch
2025-04-05 06:19:54 -07:00
Raja Subramanian
3842b2ba38 Fix changeset. (#1034)
This is a bit annoying. I made this mistake once. And it blocks the
Release in GH action.
2025-04-05 12:03:18 +05:30
Raja Subramanian
61cc1f628d Use cgroup for memory stats. (#1031)
* Use cgroup for memory stats.

This is not going to work well when limit is not set.
It falls back to go-osstat if limits are not set.

* generated protobuf

* fall back to osstat

* generated protobuf

* maxVal

* generated protobuf

* Create pretty-gifts-look.md

* static check

* generated protobuf

* static check

* generated protobuf

* static check

* generated protobuf

* static check

* generated protobuf

* comment

* generated protobuf

* leading slash

* use physical memory

* static check

* typo, thanks DZ

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-05 11:36:55 +05:30
Ben Cherry
da617d9683 Add client info enum value for unreal (#1032)
* Add client info enum value for unreal

* generated protobuf

* Create thirty-cougars-dream.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-04 14:07:59 -07:00
Raja Subramanian
33d360bf92 move an SDP utility function (#1033) 2025-04-05 01:47:41 +05:30
cnderrauber
16e28eab22 Require source|dest room admin when forwarding participant (#1027)
* Require `source|dest` room admin when forwarding participant

* Space

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-02 18:20:30 +08:00
Raja Subramanian
cdd4c1b197 Add rate for memory use and total. (#1030)
* Add rate for memory use and total.

Load and overage for memory is calculated differently in cloud.
Removing that distinction caused memory based load to show higher load
consistently which was unintentional.

* generated protobuf

* Create nervous-ways-yawn.md

* correct next ID

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-02 10:08:36 +05:30
Denys Smirnov
01ba6afd74 Add helper to get SIP call status from an error. (#1028) 2025-04-01 12:15:45 +03:00
Raja Subramanian
dbeeaa7e26 Revert cid changes. (#1029)
* Revert cid changes.

Need to re-think this one.

* generated protobuf

* Create popular-dodos-study.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-31 23:06:45 +05:30
Raja Subramanian
526e976d7a fixing the changeset :facepalm; (#1025) 2025-03-31 18:22:12 +05:30
Raja Subramanian
67af9b92e4 Add more fields to CodecInfo. (#1024)
* Add more fields to CodecInfo.

- Rename Cid -> SignalCid as this is what comes via signalling channel
- Add SdpCid and IsSimulcast

* generated protobuf

* Create thick-rivers-mate.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-31 18:09:11 +05:30
Raja Subramanian
fbbb1c3ae2 Reworking node stats a bit. (#1023)
* Reworking node stats a bit.

- Introducing a rate shape that captures rate of different metrics in a
  given interval. The interval is contained in that message.
- Stats can have multiple rates. This is akin to reporting different
  window load avg in unix systems.
- Clean up a few things
  o sys packets pct in rate (not sure what it was capturing)
  o associated prom metric (this is in server code which will come in a
    separate PR) (was not used anywhere internally, don't
    think external projects would be using it either)

* Create tricky-ties-marry.md

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-26 23:16:20 +05:30
github-actions[bot]
395f078b6e Version Packages (#1021)
Some checks failed
Generate / generate (push) Has been cancelled
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.36.1 github.com/livekit/protocol@1.36.1 v1.36.1
2025-03-26 16:06:08 +08:00
cnderrauber
53e0c88edf Refine backup codec policy (#1022)
* Refine backup codec policy

Make the default behavior to be a `preferred` value that
the sfu will determine proper policy by room information.

* rename

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-26 15:53:25 +08:00
cnderrauber
4e01e16ba5 remove unused kinds in kindToProto (#1020) 2025-03-25 18:27:11 +08:00
github-actions[bot]
2ec7b860fd Version Packages (#1012)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.36.0 github.com/livekit/protocol@1.36.0 v1.36.0
2025-03-25 10:31:19 +01:00
lukasIO
3d92d3e0b1 Add KindDetails to ParticipantInfo (#1019)
* Add cloud features enum

* Create cuddly-dryers-guess.md

* add next id

* generated protobuf

* rename to more specific KindDetail

* generated protobuf

* Update cuddly-dryers-guess.md

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-25 10:16:46 +01:00
Anunay Maheshwari
449c8ec454 feat(sdp): add helper functions for simulcast and trackId (#1018)
* feat(sdp): add helper functions for simulcast and trackId

* chore: add changeset
2025-03-24 14:28:03 +05:30
Paul Wells
157eda585c refactor suppress errors (#1016)
* refactor suppress errors

* better name
2025-03-20 21:35:17 -07:00
Denys Smirnov
6d044a0462 Fix incremental SIP dispatch rule update. (#1014) 2025-03-20 18:17:08 +02:00
Dan McFaul
fdacb1a293 add cloud agents (#1010)
* initial commit

* add agent hosting types

* generated protobuf

* Update auth/grants.go

Co-authored-by: David Zhao <dz@livekit.io>

* Update protobufs/livekit_cloud_agent.proto

Co-authored-by: David Zhao <dz@livekit.io>

* dz feedback

* rebase fixes

* match ListAgents func call

* generated protobuf

* update regional_agents to agent_deployments

* generated protobuf

* add client settings endpoint

* generated protobuf

* Create changeset

* fix changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Zhao <dz@livekit.io>
2025-03-19 10:50:56 -06:00
Denys Smirnov
ce72bd5bb7 Update API for SIP. (#869) 2025-03-19 14:49:48 +02:00
github-actions[bot]
f517a07061 Version Packages (#985)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@livekit/protocol@1.35.0 github.com/livekit/protocol@1.35.0 v1.35.0
2025-03-18 19:19:14 +08:00
cnderrauber
2d5bce98ac Changeset for ForwardingParticipant change (#1011)
* Changeset for ForwardingParticipant change

https://github.com/livekit/protocol/pull/1008

* fix new type
2025-03-18 16:30:22 +08:00
David Colburn
549a29a812 downgrade gstreamer property assertions (#1009)
* downgrade gstreamer property assertions

* simplify
2025-03-12 00:10:09 -04:00
cnderrauber
368c3d6198 ForwardParticipant changes (#1008)
* ForwardParticipant changes

remove stop flag in the request
add new `forwarded` participant type

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-12 12:07:30 +08:00
Raja Subramanian
4035de5f7f YAML tags for config. (#1007)
Sorry folks, not having a good day. Making a 4th PR for something dead
simple. Apologies.
2025-03-11 13:42:27 +05:30
Raja Subramanian
56615aa7e6 Move WebHookConfig to use location (#1006)
* Move WebHookConfig to use location

* generate

* generated protobuf

* make URLNotifier config

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-11 12:34:00 +05:30
Raja Subramanian
d04fdeaed6 Add a default config for ReousrceURLNotifierConfig. (#1005)
* Add a default config for ReousrceURLNotifierConfig.

Forgot to add that in my previous PR :-()

* just set defaults in config directly
2025-03-11 11:28:38 +05:30
Raja Subramanian
9b34314a3d Make ResourceURLNotifier configurable. (#1004)
* Make ResourceURLNotifier configurable.

Also change default max age to 10s.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-11 11:08:00 +05:30
David Colburn
39426dfb28 downgrade all turn, ice, and sdk errors (#1003) 2025-03-10 00:15:19 -04:00
cnderrauber
03867f6036 Add ForwardParticipant method to RoomService (#1002)
* Add ForwardParticipant method to RoomService

* faked rpc client

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-10 11:38:36 +08:00
Raja Subramanian
e586a23f4e Support filtering webhook events. (#1001)
* Support filtering webhook events.

* test

* set filter
2025-03-07 23:45:33 +05:30
Raja Subramanian
4102568c88 Per resource webhook queue. (#1000)
* Per resource webhook queue.

With a worker based approach, an event on a resource (like a room) not
being handled could affect other resources (other rooms or ingress or
egress).

To prevent that, do a per resource queue with two kinds of limits
- age of event: when queuing, if the event at the front of the queue
  exceeds a certain limit (default: 5 seconds), the event is dropped
- depth of queue: drop event if the number of queued events exceeds some
  level (default: 200)

To reap the per resource queue, specific end events are tracked and the
resource is added to the reap queue and reaped after a configurable
timeout (default: 5 min). This is to ensure that events happening just
after end event (for example: participant_left happening after
room_finished) are handled without re-creating a new resource.

Also, deprecating `num_dropped` from proto.

Some other bits of notes/challenges:
- Keeping the old URL notifier also. Also, the default notifier is that.
  Can change to the new one before merging this PR if this approach
  looks good.
- Using string compares of event name to detect end. Not great.
- Needs a sweeper to reap the resource queue. I think 5 min default
  timeout to reap should be okay, but maybe there are things that can
  cause re-creation of a resource queue after reaping and those could
  leak? Needs more analysis.
- Storing `context.Context` in resource queue so that it can be used
  during posting to webhook from resource queue go routine. Storing that
  is not great, but we need it for analytics key.

* generated protobuf

* missed files

* generated protobuf

* fix test in data race

* generate

* generated protobuf

* paul feedback

* fixes

* race

* more Paul feedback

* make resource notifier the default

* generated protobuf

* stop

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-07 22:39:59 +05:30