mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-09 23:26:47 +02:00
Add control_script to stream sources
New parameter "control_script", starting a script on stream start. Parameters "--snapcast-port" and "--stream" are passed to the script
This commit is contained in:
parent
ec73bfb6d6
commit
2e64d81f79
25 changed files with 265 additions and 95 deletions
|
@ -693,9 +693,8 @@ void Server::start()
|
|||
{
|
||||
controlServer_ = std::make_unique<ControlServer>(io_context_, settings_.tcp, settings_.http, this);
|
||||
streamServer_ = std::make_unique<StreamServer>(io_context_, settings_, this);
|
||||
streamManager_ =
|
||||
std::make_unique<StreamManager>(this, io_context_, settings_.stream.sampleFormat, settings_.stream.codec, settings_.stream.streamChunkMs);
|
||||
// throw SnapException("xxx");
|
||||
streamManager_ = std::make_unique<StreamManager>(this, io_context_, settings_);
|
||||
|
||||
// Add normal sources first
|
||||
for (const auto& sourceUri : settings_.stream.sources)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue