Pass input-ipc-server player argument to mpv (#529) (#669)

* Pass input-ipc-server player argument to mpv (#529)

* Create secondary mpv IPC Socket "mpvSyncplaySocket" by default
This commit is contained in:
Etoh 2024-02-03 12:02:22 +00:00 committed by GitHub
parent 793804ede2
commit 459c9e9198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -420,6 +420,8 @@ class MpvPlayer(BasePlayer):
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)