summaryrefslogtreecommitdiff
path: root/documents
diff options
context:
space:
mode:
authorMike Brady <mikebradydublin@icloud.com>2020-02-20 21:32:35 +0000
committerMike Brady <mikebradydublin@icloud.com>2020-02-20 21:32:35 +0000
commit02224666dae921720ca6e3e87566e6379e1e60aa (patch)
treea071139214cabf7bdc2a4ce26e8a96ad8736cb6c /documents
parentcfb491ec9e01489e9bb4e01f0fedf236de5ed395 (diff)
Squashed commit of the following:
Don't use strndup as old versions of OpenWrt don't seem to have it Update FREEBSD.md Fix comparison between old and new metadata strings by checking they have equal lengths as well. Remove a redundant definition to prevent use on an uninitialised copy, clean up some of the less-used backends Remove some unwanted and unused variable declarations from audio_dummy.c and audio_soundio.c Add the -fno-common flag to compilation. Treat the "mper" attribute as the 64-bit item that it is rather than a 32-bit item as hithereto. Output it as a hexadecimal number to correspond with the format of the track id obtained from AppleScript Make changes to that it compiles under gcc-10 with -fno-common Add a SIGCHLD handler to reap zombie processes generated after script invocations where wait_for_completion is set to "no". Update and rename CONTRIBUTING.md to REPORTING ISSUES.md Add a few more commands and clarify some text. Change from talking about a server to talking about a client. Technically, e.g. iTunes is a client of Shairport Sync. Store the UserAgent so as to recognise forked-daapd so as to always send a revision_number of 1 when asking for playerstatus of forked-daapd. Add or update some of the copyright notices Add the ability to set the volume directly to the D-Bus RemoteControl interface and to the MPRIS interface. Both use the recently-discovered ability to set the device_volume. Merge in Pieter De Gendt's work on resampling on the jack backend. Merge pull request #939 from pdgendt/feature/jack-soxr-resampling Add SetAirplayVolume to the D-Bus RemoteControl interface. Add SetVolume to the MPRIS interface. Hook up the Volume property in the MPRIS interface. Modify RemoteCommand in the D-Bus interface to return the HTTP status and response. Change the type of airplay_volume from int to double in the metadata hub. Add a few sample commands in the D-Bus document.
Diffstat (limited to 'documents')
-rw-r--r--documents/sample dbus commands15
1 files changed, 15 insertions, 0 deletions
diff --git a/documents/sample dbus commands b/documents/sample dbus commands
index 5b173d4..96219c1 100644
--- a/documents/sample dbus commands
+++ b/documents/sample dbus commands
@@ -1,3 +1,6 @@
+# For the "Native" Shairport Sync D-Bus Interface support, Shairport Sync must be built with the D-Bus interface support. Add the '--with-dbus-interface' flag at the ./configure stage.
+# There is a simple test client that you can have built -- add the '--with-dbus-test-client' flag at the ./configure stage. You'll get an executable called shairport-sync-dbus-test-client
+
# Get Log Verbosity
dbus-send --print-reply --system --dest=org.gnome.ShairportSync /org/gnome/ShairportSync org.freedesktop.DBus.Properties.Get string:org.gnome.ShairportSync.Diagnostics string:Verbosity
# Return Log Verbosity
@@ -59,6 +62,11 @@ dbus-send --print-reply --system --dest=org.gnome.ShairportSync /org/gnome/Shair
# Set Convolution Impulse Response File:
dbus-send --print-reply --system --dest=org.gnome.ShairportSync /org/gnome/ShairportSync org.freedesktop.DBus.Properties.Set string:org.gnome.ShairportSync string:ConvolutionImpulseResponseFile variant:string:"/etc/shairport-sync/boom.wav"
+# Set Airplay Volume using Remote Control. Airplay Volume is between -30.0 and 0.0 and maps linearly onto the slider, with -30.0 being lowest and 0.0 being highest.
+dbus-send --system --print-reply --type=method_call --dest=org.gnome.ShairportSync '/org/gnome/ShairportSync' org.gnome.ShairportSync.RemoteControl.SetAirplayVolume double:-10.0
+
+
+# AdvancedRemoteControl interface.
# Some commands and properties are accessible only through the AdvancedRemoteControl interface.
# However, only iTunes or the macOS Music app from 10.15.2 onwards
# provide the functionality needed for the AdvancedRemoteControl interface to work.
@@ -70,3 +78,10 @@ dbus-send --print-reply --system --dest=org.gnome.ShairportSync /org/gnome/Shair
# Set Volume using Advanced Remote Control -- only works if the org.gnome.ShairportSync.AdvancedRemoteControl is available.
dbus-send --system --print-reply --type=method_call --dest=org.gnome.ShairportSync '/org/gnome/ShairportSync' org.gnome.ShairportSync.AdvancedRemoteControl.SetVolume int32:50
+
+# MPRIS interface commands.
+# For MPRIS support, Shairport Sync must be built with the MPRIS interface support. Add the '--with-mpris-interface' flag at the ./configure stage.
+# There is a simple test client that you can have built -- add the '--with-mpris-test-client' flag at the ./configure stage. You'll get an executable called shairport-sync-mpris-test-client.
+# This is mostly compatible with the MPRIS standard, except that Volume is read-only, with a separate SetVolume method.
+# Set Volume, which must be between 0.0 and 1.0 and maps linearly onto the slider.
+dbus-send --system --print-reply --type=method_call --dest=org.mpris.MediaPlayer2.ShairportSync '/org/mpris/MediaPlayer2' org.mpris.MediaPlayer2.Player.SetVolume double:0.3