Code: Select all
/Applications/VLC.app/Contents/MacOS/VLC -vvv --extraintf=luaintf --lua-intf rest
The lua script itself is currently barebones, has the following content:
Code: Select all
require "common"
vlc.msg.info("Lua REST interface")
h = vlc.httpd("*", 32009)
a = h:handler("/test",nil,nil,test_f,nil)
Code: Select all
[0x100280530] [rest] main interface debug: net: listening to * port 8080
[0x100280530] [rest] lua interface error: Error loading script /Users/john/Library/Application Support/org.videolan.vlc/lua/intf/rest.lua: ...plication Support/org.videolan.vlc/lua/intf/rest.lua:53: bad argument #4 to 'handler' (acl expected, got function)
Can anyone help me get to a point where I have it serving up simple webpages (eventually I want it to serve JSON data) ?