Data tracks (#4089)

* WIP

* WIP

* Starting to add some signalling integration testing.

* Working tests.

* fix tests

* Forward data packets (#4096)

* WIP commit

* WIP

* WIP

* fix forwarding

* address PR comments

* move some methods from LocalParticipant to Participant interface

* handle subscription update

* add extensions and tests

* more packet tests

* add test for replace extension and fix a bug

* update protocol and add config
This commit is contained in:
Raja Subramanian
2025-12-04 10:44:34 +05:30
committed by GitHub
parent 7158d98366
commit 7954748d7a
52 changed files with 5897 additions and 499 deletions
+3 -1
View File
@@ -154,6 +154,7 @@ func createSingleNodeServer(configUpdater func(*config.Config)) *service.Livekit
panic(fmt.Sprintf("could not create config: %v", err))
}
conf.Keys = map[string]string{testApiKey: testApiSecret}
conf.EnableDataTracks = true
if configUpdater != nil {
configUpdater(conf)
}
@@ -184,6 +185,7 @@ func createMultiNodeServer(nodeID string, port uint32) *service.LivekitServer {
conf.RTC.TCPPort = port + 2
conf.Redis.Address = "localhost:6379"
conf.Keys = map[string]string{testApiKey: testApiSecret}
conf.EnableDataTracks = true
currentNode, err := routing.NewLocalNode(conf)
if err != nil {
@@ -302,7 +304,7 @@ func listRoomToken() string {
return t
}
func stopWriters(writers ...*testclient.TrackWriter) {
func stopWriters(writers ...testclient.TrackWriter) {
for _, w := range writers {
w.Stop()
}