MPV: Add possibility to control which socket to use (#320)
Co-authored-by: Denis Fomin <dfomin@retechlabs.com>
This commit is contained in:
parent
2d3fc14474
commit
bf4bea65c3
@ -593,7 +593,8 @@ class MpvPlayer(BasePlayer):
|
|||||||
env['PATH'] = '/usr/bin:/usr/local/bin'
|
env['PATH'] = '/usr/bin:/usr/local/bin'
|
||||||
env['PYTHONPATH'] = pythonPath
|
env['PYTHONPATH'] = pythonPath
|
||||||
try:
|
try:
|
||||||
self.mpvpipe = MPV(mpv_location=self.playerPath, loglevel="info", log_handler=self.__playerController.mpv_log_handler, quit_callback=self.stop_client, **self.mpv_arguments)
|
socket = self.mpv_arguments.get('input-ipc-server')
|
||||||
|
self.mpvpipe = MPV(mpv_location=self.playerPath, ipc_socket=socket, loglevel="info", log_handler=self.__playerController.mpv_log_handler, quit_callback=self.stop_client, **self.mpv_arguments)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.quitReason = getMessage("media-player-error").format(str(e)) + " " + getMessage("mpv-failed-advice")
|
self.quitReason = getMessage("media-player-error").format(str(e)) + " " + getMessage("mpv-failed-advice")
|
||||||
self.__playerController.reactor.callFromThread(self.__playerController._client.ui.showErrorMessage, self.quitReason, True)
|
self.__playerController.reactor.callFromThread(self.__playerController._client.ui.showErrorMessage, self.quitReason, True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user