Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justas-d/mpd-rich-presence-discord
Broadcast your MPD state using discord rich presence!
https://github.com/justas-d/mpd-rich-presence-discord
cpp11 discord discord-rpc mpd nowplaying rich-presence
Last synced: 4 months ago
JSON representation
Broadcast your MPD state using discord rich presence!
- Host: GitHub
- URL: https://github.com/justas-d/mpd-rich-presence-discord
- Owner: justas-d
- License: mit
- Created: 2017-11-20T02:09:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-21T18:23:15.000Z (over 2 years ago)
- Last Synced: 2024-01-16T17:14:55.335Z (6 months ago)
- Topics: cpp11, discord, discord-rpc, mpd, nowplaying, rich-presence
- Language: C++
- Size: 648 KB
- Stars: 85
- Watchers: 2
- Forks: 17
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-discord-activities - mpd-rich-presence-discord - Broadcast [MPD](https://musicpd.org/) state via Discord Rich Presence (Music)
README
MPD Rich Presence for Discord
Broadcast MPD state via Discord Rich Presence
- Images
- Single App Mode
- Multi App Mode
- Multi App vs Single App Mode
- Command Line Arguments
- Compiling
- Similar
- Buy me a coffee
---
## Images
### Single App Mode
| State | Image |
| :-: | :-: |
| Playing | ![Playing](assets/readme/single-playing.png)
| Paused | ![Paused](assets/readme/single-paused.png)
| Idle | ![Idle](assets/readme/single-idle.png)
### Multi App Mode
| State | Image |
| :-: | :-: |
| Playing | ![Playing](assets/readme/multi-playing.png)
| Paused | ![Paused](assets/readme/multi-paused.png)
| Idle | ![Idle](assets/readme/multi-idle.png)
---
## Multi App vs Single App Mode
* Single App Mode
* This mode will only use a single MPD app, which will diplay the three different MPD states. (Playing, Paused and Idle)
* This mode syncs faster than the multi-app mode.
* Multi App Mode
* This mode will use multiple, unique MPD apps:
* `MPD (Playing)`
* `MPD (Paused)`
* `MPD` (Reserved for idle)
* These app names will show up next to your name on the sidebar.
* This mode updates slower than the single app mode.
---
## Command Line Arguments
Example: `mpd_discord_richpresence -h=211.111.111.112 -P=password -p=6606 --fork --no-idle --use-multiple-apps`
| Paramater| Purpose |
|--|--|
|`-h=ADDDRESS`|The listen-address for MPD. (Defaults to `127.0.0.1`)|
|`-p=PORT`|The port which MPD is listening on. (Defaults to `6600`)|
|`-P=PASSWORD`|The password sent to MPD after the connection has been established successfully. (Default is empty, therefore no password sent.)|
|`--fork`|Forks the process into the background.|
|`--no-idle`|Disables broadcasting of the idle state.|
|`--use-multiple-apps`|Uses the Multi-App mode.|
> ⚠️ discord-rpc [will not work](https://github.com/discordapp/discord-rpc/issues/213#issuecomment-410631101) if Discord has been installed through snap (Ubuntu Software). Please download and install Discord from the [homepage](https://discordapp.com/).
---
## Compiling
### Dependencies
* pthread
* [discord-rpc](https://github.com/discordapp/discord-rpc)
* libmpdclient
A [build script](build.sh) is included.
The CMakeFile will take care of finding discord-rpc. If it cannot find it, it will pull the discord-rpc GitHub repo and compile from source.
---
## Similar
* [mpv-discordRPC, noaione](https://github.com/noaione/mpv-discordRPC) - MPV
* [foo_discord, NaamloosDT/](https://github.com/NaamloosDT/foo_discord) - foobar2000 rich presence