Commit Graph
100 Commits
Author SHA1 Message Date
David Zhao c08d1e9d72 Improve test CI (#262)
* minimal change

* Better test format for GH CI

* Give server a bit longer to startup, to improve GH test
2021-12-14 17:15:08 -08:00
David Zhao 8abd734d16 Use participant and room specific loggers (#252) 2021-12-10 15:51:05 -08:00
David Zhao d342335d09 Split out SignalHandler to simplify testing (#250) 2021-12-10 13:12:45 -08:00
David Zhao 882f3bdde5 Allow subscription requests made from server APIs (#249) 2021-12-10 11:51:03 -08:00
David Zhao bda2e9cc59 Update protocol to v0.11.0 2021-12-08 13:59:55 -08:00
David Zhao 2d93ccd668 Updated protocol from protocol/proto -> protocol/livekit (#242)
* Updated protocol from protocol/proto -> protocol/livekit

* separate MediaTrack from PublishedTrack
2021-12-08 13:58:38 -08:00
David Zhao 318bee4f1e Improve video quality selection by using publisher feedback (#238) 2021-12-06 12:12:08 -08:00
David Zhao c00d799ac6 Fixed permission handling with room deletion (#233) 2021-12-03 14:27:13 -08:00
David Zhao 50469b33a9 Fixed incorrect simulcast information (#218) 2021-11-30 21:22:16 -08:00
David Zhao a799069392 Add note about node-ip being public IP 2021-11-30 08:57:44 -08:00
David Zhao 1652fd5dc9 remove go fmt watcher 2021-11-28 11:02:19 -08:00
David Zhao 6dcb29c559 Use publisher PC as default with publish-only connections (#198) 2021-11-20 22:28:36 -08:00
David Zhao 79cfc0d76a update protocol & pion versions 2021-11-19 21:25:08 -10:00
David Zhao 202cabbb10 v0.14.2 2021-11-19 07:28:19 -10:00
David Zhao ffb2c50a70 Fixed room API breakage (#190) 2021-11-14 11:18:01 -08:00
David Zhao ceae58ac20 Fixed deadlocks occurring in Receiver writeRTP (#189)
When we RLock during write cycles, the mutex spends the majority of its time
staying locked. As new participants join, they have to acquire the WLock
before downtracks could be add it.

In load test scenarios (25 participants joining together), it's common to see
goroutine dump showing MediaTrack.AddSubscriber -> DownTrack.storeDownTrack trying to acquire mutex, and never able to acquire it.
2021-11-13 22:59:53 -08:00
David Zhao 6500ce262d Fix publisher loss reporting (#186) 2021-11-11 23:29:54 -08:00
David Zhao 5a057f3d19 Handle nil when buffer pair doesn't exist 2021-11-11 23:16:21 -08:00
David Zhao 1e2e53a575 v0.14.1 2021-11-11 13:29:39 -08:00
David Zhao 90f3c43dc5 Fixed deadlock in pion with SRTP and DataChannel 2021-11-11 13:25:08 -08:00
David Zhao 0a769662aa Fixed multi-platform builds (#178) 2021-11-10 15:07:49 -08:00
David Zhao fbc0d43f4f Remove unused replace in go.mod 2021-11-09 21:51:59 -08:00
David Zhao c5830f9060 add ion-sfu NOTICE 2021-11-08 20:56:53 -08:00
David Zhao 749446274f Use time.Unix instead of UnixMilli (for Go 1.15 compat) 2021-11-08 20:47:41 -08:00
David Zhao 8344466629 Delete unused code 2021-11-07 21:10:40 -08:00
David Zhao ac004e7fb0 v0.14.0 2021-11-04 22:31:24 -07:00
David Zhao 6a80beedfc Only send connection quality updates for protocol 5+ 2021-11-03 23:09:25 -07:00
David Zhao aa9534b7fb Server-driven connection quality detection (#167) 2021-11-03 21:05:20 -07:00
David Zhao 5e0833a250 v0.13.7 2021-11-01 12:14:11 -07:00
David Zhao 7442551ae5 Fix missing participant updates race (#163)
* Fix faulty participant update buffering.

* Fix bug with broadcasting out of order

* dedicated participant update worker, without locks

* use tracker to drop duplicate/out of date messages

* additional lock around filter logic
2021-10-31 15:20:46 -07:00
David Zhao 0898c17e8a Select video quality using provided dimensions (#158) 2021-10-28 21:01:05 -07:00
David Zhao 3f0d1ff0ce v0.13.5 2021-10-19 23:22:55 -07:00
David Zhao 833e497f37 Pass TrackInfo entirely to ensure fields aren't missing (#150) 2021-10-19 17:27:32 -07:00
David Zhao 43079866a2 Update to Pion v3.1.5, fixed simulcast / non-simulcast mixing 2021-10-15 09:35:01 -07:00
David Zhao 182c19e8e2 version v0.13.4 2021-10-15 00:32:57 -07:00
David Zhao 81712f9502 revert to pion v3.1.0-beta.3
mixing of simulcast and non-simulcast tracks is broken
2021-10-15 00:31:57 -07:00
David Zhao eba0c23375 Handle TrackInfo.Source attribute (#146)
* Support passing along Source attribute
2021-10-14 13:10:57 -07:00
David Zhao 4149c4a314 removed duplicate region log 2021-10-10 22:52:51 -07:00
David Zhao 575b99840a Fixed handling of multiple nodes in region-aware routing 2021-10-10 22:25:29 -07:00
David Zhao 3013139fa0 update link to deployment docs 2021-10-08 23:02:52 -07:00
David Zhao 52e10ea315 handle nil MessageChannel 2021-10-06 22:24:09 -07:00
David Zhao c745f0a318 Region aware routing (#135)
* Region aware routing

* update config, fix spacing on commented out lines
2021-10-06 21:40:04 -07:00
David Zhao fb91dce30e version bump v0.13.1 2021-10-04 17:17:41 -07:00
David Zhao 797d2607c4 Fix NACK handling in simulcast (fixed in ion-sfu) 2021-10-04 17:17:41 -07:00
David Zhao cdb04248fb Fixed reconnection for single node
It does not yet support resuming the session.
2021-09-24 14:19:23 -07:00
David Zhao 4fe3c07bb0 version bump 0.13.0 2021-09-21 23:26:22 -07:00
David Zhao 3ed3afad2c Recognize Go client in parsing 2021-09-17 16:25:47 -07:00
David Zhao ff47301820 Implements protocol 3 speaker updates (#120)
* Disallow AddTrack from participants that don't have the permission

* Support protocol 3 speaker updates, client info

* update protocol

* Disallow AddTrack from participants that don't have the permission

* increase wait time for GH to pass
2021-09-17 11:47:13 -07:00
David Zhao 20d0c0ca43 Fix mute of simulcasted video tracks with < 3 encodings (#114) 2021-09-14 15:50:34 -07:00
David Zhao 95a5e3ca85 Fix data publish test (#113) 2021-09-12 00:25:36 -07:00
David Zhao 66997b37f9 improve reliability of data publish test 2021-09-11 23:33:35 -07:00
David Zhao 976e61f10c more generous sleep workaround in test client, better logging 2021-09-11 23:18:20 -07:00
David Zhao ceea024fdb fix tests 2021-09-11 22:50:00 -07:00
David Zhao e99ec0b339 Add tests to data publishing with protocol 3 2021-09-11 22:27:17 -07:00
David Zhao 1bcaf9d0ea update test client to use protocol 3 2021-09-10 20:58:33 -07:00
David Zhao 614ede2edc Supports client protocol 3 - subscriber as primary (#110)
* use subscriber connection as primary whenever possible

* backwards compat for data messages

* bump protocol version
2021-09-09 00:53:15 -07:00
David Zhao 63bd531cc8 version bump 0.12.5 2021-09-05 15:05:21 -10:00
David Zhao e82d50d717 Send explicit message to clients for mute/unmute. (#107)
* Send explicit message to clients for mute/unmute.

* documentation in config
2021-09-01 21:50:02 -07:00
David Zhao d882542491 links to Flutter SDK 2021-08-30 22:56:15 -07:00
David ZhaoandChesterMing bcf6e15e07 SendData API & publishData permission (#88)
* SendData Server API

* SendData Server-API adjustments based on suggestions

* Update proto version

* enforce publishData permission

* go mod tidy

* fix go.mod

* go mod tidy

Co-authored-by: ChesterMing <89124853+ChesterMing@users.noreply.github.com>
2021-08-19 18:11:48 -07:00
David Zhao 2ab37d8fcc v0.12.1 2021-08-16 14:14:19 -07:00
David Zhao 29edf4e8d9 Improve dynamic simulcast, properly cleanup after pendingTracks (#84) 2021-08-13 15:49:25 -07:00
David Zhao 5713731363 allow user to mute before track is fully published (#82)
fixes https://github.com/livekit/client-sdk-js/issues/28
2021-08-10 21:09:23 -07:00
David Zhao 896b28d45d v0.12.0 2021-08-09 23:58:44 -07:00
David Zhao 6fe0d4bafc webhook type -> event 2021-08-09 23:37:01 -07:00
David Zhao 9495646f1a webhooks support (#81) 2021-08-09 09:57:37 -07:00
David Zhao 24494e96fd v0.11.4 2021-07-30 23:03:36 -07:00
David Zhao b8e1cbe4f5 fix: avoid placing user in a layer that's not published 2021-07-30 21:29:19 -07:00
David Zhao a9c4851113 Fix external IP discovery. fix LeaveRequest during server disconnect (#72) 2021-07-28 21:33:34 -07:00
David Zhao f8782fae3f Send stun servers to clients (#69)
* Send stun servers to clients

* use TURN/UDP as STUN servers
2021-07-26 15:43:26 -07:00
David Zhao 77ed742d50 update pion + ice 2021-07-23 12:43:14 -07:00
David Zhao 47f4f514b9 version bump 0.11.1 2021-07-22 22:03:58 -07:00
David Zhao 834dce543b fix participant APIs when using LocalRouter (#67) 2021-07-22 11:06:23 -07:00
David Zhao c493022f0f fix force_tcp flag: don't set UDPMux when enabled (#62) 2021-07-19 09:16:01 -07:00
David Zhao 807b808c8e v0.11.0 2021-07-16 14:28:03 -07:00
David Zhao 55eb654a1b When adaptive-simulcast is used, allow subscribers to switch to the next available layer (#55) 2021-07-16 14:24:00 -07:00
David Zhao 4ce29799cf remove H.264 profile 42001f. Safari (14.1.1) does not playback tracks offered in this profile 2021-07-13 22:32:38 -07:00
David Zhao 53b52a67ca use protobuf for clients with protocol > 1 (#52) 2021-07-13 22:28:34 -07:00
David Zhao 850fecf931 Allow publishers to set layer availability (#51)
* support client message to update active layers

* update to match new protocol
2021-07-13 21:35:08 -07:00
David Zhao 0cf6efdae9 Remove ECS terraform from repo, updated README (#49) 2021-07-12 16:13:41 -07:00
David Zhao d38fc43b89 Lock room creation to ensure atomic creation & node assignment (#46)
* Lock room creation to ensure atomic creation & node assignment

* more tests
2021-07-12 14:50:14 -07:00
David Zhao c0bff83a36 v0.10.5 2021-07-11 08:43:08 -07:00
David Zhao a80e8cf69f Enable passing in local IP, refactored IP detection (#48)
* Enable passing in local IP, refactored IP detection

* update docker server instructions
2021-07-11 08:42:11 -07:00
David Zhao 4c54234954 Update docker instruction to forward ports 2021-07-09 15:51:28 -07:00
David Zhao 1fd858a16b fix layer-switch glitch with H.264 simulcast 2021-07-07 23:40:58 -07:00
David Zhao ec2d7a49cd v0.10.4 2021-07-07 15:08:00 -07:00
David Zhao 76efe14c6d ensure keys are not empty 2021-07-06 21:43:03 -07:00
David Zhao 4ec2959950 Use discreet ports by default due to write bottleneck (#40) 2021-07-06 15:08:46 -07:00
David Zhao 9e7ee342ee updated readme with playground links 2021-07-05 14:51:26 -07:00
David Zhao a3e96ea4e7 update to upstream pion 3.0.30 2021-07-05 11:59:41 -07:00
David Zhao 0625c7cc72 update version to 0.10.1 2021-07-05 11:01:24 -07:00
David Zhao d47a784dd1 Fix broken links in readme 2021-07-03 12:51:04 -07:00
David Zhao a694c82581 publish to docker automatically on tag (#35) 2021-07-03 12:46:56 -07:00
David Zhao 1ced03d72f fixed failing tests 2021-07-02 17:04:22 -07:00
David Zhao 42f4c773fb v0.10.1 2021-07-02 16:55:26 -07:00
David Zhao 6751361187 Feature: codec restrictions.
In order to ensure clients are publishing with compatible codecs, the server can enforce codec restrictions.
2021-07-02 16:54:54 -07:00
David Zhao 4e6eafa63c for test environments, allow use of internal IP if external IP isn't available 2021-06-30 15:14:58 -07:00
David Zhao cc30d2e025 log error when creating new node (test) 2021-06-30 10:57:54 -07:00
David Zhao fb7a6cf567 Updated README with link to react, contributing info 2021-06-30 10:49:47 -07:00
David Zhao 6d25bd0e9a Update issue templates 2021-06-30 10:32:29 -07:00