Skip to content

Commit

Permalink
Pass input-ipc-server player argument to mpv (#529) (#669)
Browse files Browse the repository at this point in the history
* Pass input-ipc-server player argument to mpv (#529)

* Create secondary mpv IPC Socket "mpvSyncplaySocket" by default
  • Loading branch information
Et0h authored Feb 3, 2024
1 parent 793804e commit 459c9e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syncplay/players/mpv.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ def sendMpvOptions(self):
options_string = ", ".join(options)
self._listener.sendLine(["script-message-to", "syncplayintf", "set_syncplayintf_options", options_string])
self._setOSDPosition()
publicIPCSocket = self._listener.mpv_arguments.get("input-ipc-server") if self._listener.mpv_arguments.get("input-ipc-server") else "mpvSyncplaySocket"
self._setProperty("input-ipc-server", publicIPCSocket)

def _handleUnknownLine(self, line):
self.mpvErrorCheck(line)
Expand Down

0 comments on commit 459c9e9

Please sign in to comment.