![]() I know that this is not the most elegant way to fix it, so can you please provide some more proper way to fix the issue. + elseif command = "seek-within-title" then errormsg = set_var("time", radixsafe_tonumber(math.floor(argument * 1000000)))Įlseif command = "set-playstate" then errormsg = set_playstate(argument)Įlseif command = "set-rate" then errormsg = set_var("rate", radixsafe_tonumber(argument))Įlseif command = "set-title" then errormsg = set_var("title", radixsafe_tonumber(argument)) elseif command = "seek-within-title" then errormsg = set_var("time", radixsafe_tonumber(argument)) Return -488,7 +506,7 function do_command ( command, argument)Įlseif command = "get-filename" then response = "filename".msgseperator.errormerge(get_filename()).msgterminatorĮlseif command = "get-title" then response = "title".msgseperator.errormerge(get_var("title", 0)).msgterminatorĮlseif command = "set-position" then errormsg = set_time(radixsafe_tonumber(argument)) errormsg = set_var("time", radixsafe_tonumber(realtime)) + errormsg = set_var("time", radixsafe_tonumber(realtime)) + errormsg = set_var("time", radixsafe_tonumber(math.floor(realtime * 1000000))) ![]() + set_var("title", radixsafe_tonumber(newtitle)) + set_var("title", radixsafe_tonumber(newtitle * 1000000)) set_var("title", radixsafe_tonumber(newtitle)) If oldtitle ~= newtitle and newtitle > -1 then Newtitle = (timetoset - realtime) / titlemultiplier Oldtitle = radixsafe_tonumber(get_var("title", 0)) If errormsg ~= nil and errormsg ~= "" -286,9 +296,17 function set_time ( timetoset) + realtime = math.floor(realtime / 1000000) + if newtitle ~= oldtitle and get_var("time", 0) > 1 then + (() + durationdelay) - Don't give new title with old time + if newtitle ~= oldtitle and math.floor(get_var("time", 0) / 1000000) > 1 then + if string.sub(vlcversion,1,2) = "3." then (() + durationdelay) - Don't give new title with old time if newtitle ~= oldtitle and get_var("time", 0) > 1 then Newtitle, titleerror = get_var("title", 0) I saw that sometimes the madeChangeOnPlayer variable is None and tracked it to a function that returns none if it doesn't go into an if statementĭiff -git a/resources/lua/intf/a b/resources/lua/intf/a When the Syncplay client receives the 'State' change from the server it tries to use the lua interface to change the state on the player, but it calls something that breaks the plugin (or the connection between them). My player continues and the pause/unpause no longer changes the Syncplay ready status. I unpause the player (the Syncplay changes state to ready) Play/Pause the player does not change the Syncplay status (only the player on my side starts/stops to play) I am able to pause/play through the player (and this is affecting the Syncplay and the second person in the room).I unpause the player (the Syncplay changes state to ready). #SYNCPLAY WONT CONNECT WITH VLC CODE#Threading.Thread._init_(self, name="VLC Listener")Īlso I'm not sure if this is relevant, but checking around in the code I saw that the -data-path option is passed to the player, but this option is no longer available in version 3.0.0 ( Warning: option -data-path no longer exists.). playerController._client.ui.showErrorMessage(getMessage("media-player-error").format(line), True) playerController._client.ui.showErrorMessage(getMessage("vlc-failed-noscript").format(line), True) ![]() elif "Couldn't find lua interface" in line: Self._process = subprocess.Popen(call, stderr=subprocess.PIPE, stdout=subprocess.PIPE) If there is a second person in the room, the Syncplay interface is detached from VLC and play/pause don't influence the Syncplay ready state.ĭiff -git a/syncplay/players/vlc.py b/syncplay/players/vlc.py is playing 'file.mkv' (42:28) in room: 'master' Error: uncaptured python exception, closing channel (: Connection refused )Īlso when I'm the only one in the room everything works as expected (the VLC pause/unpause changes the ready state of the Syncplay GUI), but there is something strange with the times: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |