tnychn / mpv-discord

🎈 A cross-platform Discord Rich Presence integration for mpv with no external dependencies.
MIT License
172 stars 14 forks source link

Not displaying info (OS X) #6

Closed toooonyy closed 3 years ago

toooonyy commented 3 years ago

Using macOS 10.14, mpv build with luajit

[discord] (mpv-ipc): /tmp/mpvsocket/mpv-discord-67018
[cplayer] Set property: input-ipc-server="/tmp/mpvsocket/mpv-discord-67018" -> 1
[discord] mpv-discord v1.3.1 by tnychn
[ipc] Starting IPC master
[ipc] Could not bind IPC socket

Is this a script or mpv's problem?


You need to run xattr -d com.apple.quarantine discord first otherwise Apple block the binary from runing, but now how can I display the info in discord(I'm think the script is running properly rn?)

[discord] Opened config file script-opts/discord.conf.
[discord] (mpv-ipc): /tmp/mpvsocket
[cplayer] Set property: input-ipc-server="/tmp/mpvsocket" -> 1
[discord] mpv-discord v1.3.1 by tnychn
[ipc] Starting IPC master
[ipc] Listening to IPC socket.
tnychn commented 3 years ago

If you already have active=yes set in the config, then now it should work (rich presence shows up in Discord) when you are playing something in mpv. See if the messages [discord] (discord-ipc): connected and [discord] (mpv-ipc): connected are printed to console.

toooonyy commented 3 years ago

Ah, I can see

[discord] Opened config file script-opts/discord.conf.
[discord] (mpv-ipc): /tmp/mpvsocket
[discord] mpv-discord v1.3.1 by tnychn
[discord] launched subprocess

but not other logs, so it's still not working?

toooonyy commented 3 years ago

Now if I run ./discord /tmp/mpvsocket manually after opening mpv everything works fine. Maybe cuz I'm on arm mac and luajit is broken?

tnychn commented 3 years ago

Since you said the binary works fine when you launch it manually, the problem should be related to mpv and its LuaJIT instead. Note that the prebuilt Darwin binary you found on releases is for AMD64 Mac. Though I don't think it can work on ARM Mac.

toooonyy commented 3 years ago

Ok, then it's a arm problme.