Commit 7384460f authored by Akash Mehrotra's avatar Akash Mehrotra Committed by Jean-Baptiste Kempf

LUA: add addsubtitle control

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 02a2c397
......@@ -24,6 +24,9 @@ status.xml or status.json
> add <mrl> to playlist:
?command=in_enqueue&input=<mrl>
> add subtitle to currently playing file
?command=addsubtitle&val=<path>
> play playlist item <id>. If <id> is omitted, play last active item:
?command=pl_play&id=<id>
......
......@@ -88,6 +88,8 @@ processcommands = function ()
vlc.msg.err( "</options>" )
--]]
vlc.playlist.add({{path=stripslashes(input),options=options}})
elseif command == "addsubtitle" then
vlc.input.add_subtitle (stripslashes(val))
elseif command == "in_enqueue" then
vlc.playlist.enqueue({{path=stripslashes(input),options=options}})
elseif command == "pl_play" then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment