@livekit/agents
Advanced tools
Comparing version 0.3.4 to 0.3.5
# @livekit/agents | ||
## 0.3.5 | ||
### Patch Changes | ||
- fix(treewide): use newer rtc-node version - [#118](https://github.com/livekit/agents-js/pull/118) ([@nbsp](https://github.com/nbsp)) | ||
- Subscribe to published mic track for linked participant only - [#123](https://github.com/livekit/agents-js/pull/123) ([@bcherry](https://github.com/bcherry)) | ||
- Update everything to rtc 0.11.0 - [#125](https://github.com/livekit/agents-js/pull/125) ([@bcherry](https://github.com/bcherry)) | ||
## 0.3.4 | ||
@@ -4,0 +14,0 @@ |
@@ -87,5 +87,9 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
}); | ||
room.on(RoomEvent.TrackPublished, () => { | ||
// in case we are connected before the participant has published, we'd need to re-subscribe | ||
__classPrivateFieldGet(this, _MultimodalAgent_instances, "m", _MultimodalAgent_subscribeToMicrophone).call(this); | ||
room.on(RoomEvent.TrackPublished, (trackPublication, participant) => { | ||
if (this.linkedParticipant && | ||
participant.identity === this.linkedParticipant.identity && | ||
trackPublication.source === TrackSource.SOURCE_MICROPHONE && | ||
!trackPublication.subscribed) { | ||
trackPublication.setSubscribed(true); | ||
} | ||
}); | ||
@@ -92,0 +96,0 @@ room.on(RoomEvent.TrackSubscribed, __classPrivateFieldGet(this, _MultimodalAgent_instances, "m", _MultimodalAgent_handleTrackSubscription).bind(this)); |
{ | ||
"name": "@livekit/agents", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "LiveKit Agents - Node.js", | ||
@@ -18,3 +18,3 @@ "main": "dist/index.js", | ||
"@livekit/protocol": "^1.21.0", | ||
"@livekit/rtc-node": "^0.9.0", | ||
"@livekit/rtc-node": "^0.11.0", | ||
"commander": "^12.0.0", | ||
@@ -21,0 +21,0 @@ "livekit-server-sdk": "^2.6.1", |
@@ -146,6 +146,15 @@ // SPDX-FileCopyrightText: 2024 LiveKit, Inc. | ||
}); | ||
room.on(RoomEvent.TrackPublished, () => { | ||
// in case we are connected before the participant has published, we'd need to re-subscribe | ||
this.#subscribeToMicrophone(); | ||
}); | ||
room.on( | ||
RoomEvent.TrackPublished, | ||
(trackPublication: RemoteTrackPublication, participant: RemoteParticipant) => { | ||
if ( | ||
this.linkedParticipant && | ||
participant.identity === this.linkedParticipant.identity && | ||
trackPublication.source === TrackSource.SOURCE_MICROPHONE && | ||
!trackPublication.subscribed | ||
) { | ||
trackPublication.setSubscribed(true); | ||
} | ||
}, | ||
); | ||
room.on(RoomEvent.TrackSubscribed, this.#handleTrackSubscription.bind(this)); | ||
@@ -152,0 +161,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
487515
6775
+ Added@bufbuild/protobuf@2.2.3(transitive)
+ Added@livekit/rtc-node@0.11.1(transitive)
+ Added@livekit/rtc-node-darwin-arm64@0.11.1(transitive)
+ Added@livekit/rtc-node-darwin-x64@0.11.1(transitive)
+ Added@livekit/rtc-node-linux-arm64-gnu@0.11.1(transitive)
+ Added@livekit/rtc-node-linux-x64-gnu@0.11.1(transitive)
+ Added@livekit/rtc-node-win32-x64-msvc@0.11.1(transitive)
- Removed@livekit/rtc-node@0.9.2(transitive)
- Removed@livekit/rtc-node-darwin-arm64@0.9.2(transitive)
- Removed@livekit/rtc-node-darwin-x64@0.9.2(transitive)
- Removed@livekit/rtc-node-linux-arm64-gnu@0.9.2(transitive)
- Removed@livekit/rtc-node-linux-x64-gnu@0.9.2(transitive)
- Removed@livekit/rtc-node-win32-x64-msvc@0.9.2(transitive)
Updated@livekit/rtc-node@^0.11.0