Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
7384460f
Commit
7384460f
authored
Aug 15, 2011
by
Akash Mehrotra
Committed by
Jean-Baptiste Kempf
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LUA: add addsubtitle control
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
02a2c397
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
share/lua/http/requests/README.txt
share/lua/http/requests/README.txt
+3
-0
share/lua/intf/modules/httprequests.lua
share/lua/intf/modules/httprequests.lua
+2
-0
No files found.
share/lua/http/requests/README.txt
View file @
7384460f
...
@@ -24,6 +24,9 @@ status.xml or status.json
...
@@ -24,6 +24,9 @@ status.xml or status.json
> add <mrl> to playlist:
> add <mrl> to playlist:
?command=in_enqueue&input=<mrl>
?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:
> play playlist item <id>. If <id> is omitted, play last active item:
?command=pl_play&id=<id>
?command=pl_play&id=<id>
...
...
share/lua/intf/modules/httprequests.lua
View file @
7384460f
...
@@ -88,6 +88,8 @@ processcommands = function ()
...
@@ -88,6 +88,8 @@ processcommands = function ()
vlc.msg.err( "</options>" )
vlc.msg.err( "</options>" )
--]]
--]]
vlc
.
playlist
.
add
({{
path
=
stripslashes
(
input
),
options
=
options
}})
vlc
.
playlist
.
add
({{
path
=
stripslashes
(
input
),
options
=
options
}})
elseif
command
==
"addsubtitle"
then
vlc
.
input
.
add_subtitle
(
stripslashes
(
val
))
elseif
command
==
"in_enqueue"
then
elseif
command
==
"in_enqueue"
then
vlc
.
playlist
.
enqueue
({{
path
=
stripslashes
(
input
),
options
=
options
}})
vlc
.
playlist
.
enqueue
({{
path
=
stripslashes
(
input
),
options
=
options
}})
elseif
command
==
"pl_play"
then
elseif
command
==
"pl_play"
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment