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.
This commit is contained in:
@@ -592,6 +592,8 @@ void *dacp_monitor_thread_code(__attribute__((unused)) void *na) {
|
||||
// debug(1,"dacp_monitor_thread_code: command: \"%s\"",command);
|
||||
result = dacp_send_command(command, &response, &le);
|
||||
// debug(1,"Response to \"%s\" is %d.",command,result);
|
||||
// remember: unless the revision_number you pass in is 1,
|
||||
// response will be 200 only if there's something new to report.
|
||||
if (result == 200) {
|
||||
// if (0) {
|
||||
char *sp = response;
|
||||
|
||||
Reference in New Issue
Block a user