syncplay.lua 1.1.2 - modulepath support
This commit is contained in:
parent
0673b8c39d
commit
d876d158d8
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Author: Etoh
|
Author: Etoh
|
||||||
Project: http://syncplay.pl/
|
Project: http://syncplay.pl/
|
||||||
Version: 0.1.1
|
Version: 0.1.2
|
||||||
|
|
||||||
--[==========================================================================[
|
--[==========================================================================[
|
||||||
|
|
||||||
@ -70,13 +70,20 @@ Note: You may have to copy the VLC 'modules' folder to make it a sub-directory o
|
|||||||
* >> [Unknown command]-error: unknown-command
|
* >> [Unknown command]-error: unknown-command
|
||||||
|
|
||||||
--]==========================================================================]
|
--]==========================================================================]
|
||||||
require "common"
|
|
||||||
require "host"
|
|
||||||
|
|
||||||
local connectorversion = "0.1.1"
|
local modulepath = config["modulepath"]
|
||||||
|
if(modulepath ~= nil) and (modulepath ~= "") then
|
||||||
|
-- Workaround for when the script is not being run from the usual VLC intf folder.
|
||||||
|
package.path = modulepath
|
||||||
|
pcall(require,"common")
|
||||||
|
pcall(require,"host")
|
||||||
|
else
|
||||||
|
require "common"
|
||||||
|
require "host"
|
||||||
|
end
|
||||||
|
|
||||||
|
local connectorversion = "0.1.2"
|
||||||
local durationdelay = 500000 -- Pause for get_duration command for increased reliability
|
local durationdelay = 500000 -- Pause for get_duration command for increased reliability
|
||||||
|
|
||||||
local port
|
local port
|
||||||
|
|
||||||
local msgterminator = "\n"
|
local msgterminator = "\n"
|
||||||
@ -332,7 +339,7 @@ function load_file (filepath)
|
|||||||
vlc.playlist.add({{path=uri}})
|
vlc.playlist.add({{path=uri}})
|
||||||
return "load-file-attempted\n"
|
return "load-file-attempted\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
function do_command ( command, argument)
|
function do_command ( command, argument)
|
||||||
-- Processes all commands sent by Syncplay (see protocol, above).
|
-- Processes all commands sent by Syncplay (see protocol, above).
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user