Skip to content

Commit

Permalink
Tweak Airplay (#1102)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <[email protected]>
Co-authored-by: Johannes Pohl <[email protected]>
  • Loading branch information
yubiuser and badaix authored Jul 14, 2023
1 parent 089db11 commit abe6dea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion doc/player_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion server/streamreader/airplay_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit abe6dea

Please sign in to comment.