mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-29 02:07:55 +02:00
Tweak Airplay (#1102)
Signed-off-by: Christian König <ckoenig@posteo.de> Co-authored-by: Johannes Pohl <johannes.pohl@badaix.de>
This commit is contained in:
parent
089db110d6
commit
abe6dea35a
3 changed files with 4 additions and 3 deletions
|
@ -101,7 +101,7 @@ Note that you need to have the shairport-sync binary on your machine and the sam
|
|||
Parameters used to configure the shairport-sync binary:
|
||||
|
||||
- `devicename`: Advertised name
|
||||
- `port`: RTSP listening port
|
||||
- `port`: RTSP listening port (5000 for Airplay 1, 7000 for Airplay 2)
|
||||
- `password`: Password
|
||||
- `params`: Optional string appended to the shairport-sync invocation. This allows for arbitrary flags to be passed to shairport-sync, for instance `params=--on-start=start.sh%20--on-stop=stop.sh`. The value has to be properly URL-encoded.
|
||||
|
||||
|
|
|
@ -215,7 +215,8 @@ Although this _might_ be a quick and convenient way to set up an Airplay source
|
|||
* `autoreconf -i -f`
|
||||
* `./configure --with-stdout --with-avahi --with-ssl=openssl --with-metadata`
|
||||
3. Copy the `shairport-sync` binary somewhere to your `PATH`, e.g. `/usr/local/bin/`
|
||||
4. Configure snapserver with `source = airplay:///shairport-sync?name=Airplay[&devicename=Snapcast][&port=5000]`
|
||||
4. Configure snapserver with `source = airplay:///shairport-sync?name=Airplay[&devicename=Snapcast][&port=PORT]`
|
||||
* `PORT` is 5000 for Airplay 1 and 7000 for Airplay 2
|
||||
|
||||
### Spotify
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ AirplayStream::AirplayStream(PcmStream::Listener* pcmListener, boost::asio::io_c
|
|||
string devicename = uri_.getQuery("devicename", "Snapcast");
|
||||
string password = uri_.getQuery("password", "");
|
||||
|
||||
params_wo_port_ = "\"--name=" + devicename + "\" --output=stdout --use-stderr --get-coverart";
|
||||
params_wo_port_ = "\"--name=" + devicename + "\" --output=stdout --get-coverart";
|
||||
if (!password.empty())
|
||||
params_wo_port_ += " --password \"" + password + "\"";
|
||||
if (!params_.empty())
|
||||
|
|
Loading…
Add table
Reference in a new issue