transports(daily): don't send camera/audio tracks if not enabled

This commit is contained in:
Aleix Conchillo Flaqué
2024-05-16 08:14:44 -07:00
parent 9447b32f3e
commit 0da427e127
2 changed files with 8 additions and 2 deletions

View File

@@ -5,6 +5,12 @@ All notable changes to **pipecat** will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- `DailyTransport`: don't publish camera and audio tracks if not enabled.
## [0.0.15] - 2024-05-15
### Fixed

View File

@@ -229,13 +229,13 @@ class DailyTransportClient(EventHandler):
client_settings={
"inputs": {
"camera": {
"isEnabled": True,
"isEnabled": self._params.camera_out_enabled,
"settings": {
"deviceId": "camera",
},
},
"microphone": {
"isEnabled": True,
"isEnabled": self._params.audio_out_enabled,
"settings": {
"deviceId": "mic",
"customConstraints": {