Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpd: mimick httpd plugin as output #1779

Merged
merged 4 commits into from
Aug 10, 2024
Merged

Commits on Aug 10, 2024

  1. [mpd] return outputs by ascending ID

    Simply casting the speaker ID from a 64-bits int to an unsigned short
    and hoping that there will be no clashes is just optimistic.  Use an
    ascending number instead which is what MPD does too.  The MPD server
    specifically documents no persistence in these IDs so we can simply
    enumerate the speakers to meet the requirements.
    
    Signed-off-by: Fabian Groffen <[email protected]>
    grobian committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    b54b487 View commit details
    Browse the repository at this point in the history
  2. [mpd] add "plugin" to outputs response

    The plugin key is used by some clients to determine whether local
    playback is possible via HTTP stream, so mimick it.
    
    Signed-off-by: Fabian Groffen <[email protected]>
    grobian committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    2a98c13 View commit details
    Browse the repository at this point in the history
  3. [mpd] add option enable_httpd_plugin

    Signed-off-by: Fabian Groffen <[email protected]>
    grobian committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    83d2684 View commit details
    Browse the repository at this point in the history
  4. [mpd] add "httpd" output plugin when enable_http_plugin

    Return MPD-compatible output of plugin type "httpd" when
    enable_http_plugin in mpd section of the config is set.
    
    Signed-off-by: Fabian Groffen <[email protected]>
    grobian committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    3e2f318 View commit details
    Browse the repository at this point in the history