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
644b1d06
Commit
644b1d06
authored
Dec 27, 2013
by
Pierre-Hugues Husson
Committed by
Jean-Baptiste Kempf
Dec 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add name and duration to enqueue and play
Close #10242 Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
983198b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
share/lua/intf/modules/httprequests.lua
share/lua/intf/modules/httprequests.lua
+4
-2
No files found.
share/lua/intf/modules/httprequests.lua
View file @
644b1d06
...
...
@@ -75,6 +75,8 @@ processcommands = function ()
local
val
=
_GET
[
'val'
]
local
options
=
_GET
[
'option'
]
local
band
=
tonumber
(
_GET
[
'band'
])
local
name
=
_GET
[
'name'
]
local
duration
=
tonumber
(
_GET
[
'duration'
])
if
type
(
options
)
~=
"table"
then
-- Deal with the 0 or 1 option case
options
=
{
options
}
end
...
...
@@ -87,11 +89,11 @@ processcommands = function ()
end
vlc.msg.err( "</options>" )
--]]
vlc
.
playlist
.
add
({{
path
=
vlc
.
strings
.
make_uri
(
input
),
options
=
options
}})
vlc
.
playlist
.
add
({{
path
=
vlc
.
strings
.
make_uri
(
input
),
options
=
options
,
name
=
name
,
duration
=
duration
}})
elseif
command
==
"addsubtitle"
then
vlc
.
input
.
add_subtitle
(
vlc
.
strings
.
make_uri
(
val
))
elseif
command
==
"in_enqueue"
then
vlc
.
playlist
.
enqueue
({{
path
=
vlc
.
strings
.
make_uri
(
input
),
options
=
options
}})
vlc
.
playlist
.
enqueue
({{
path
=
vlc
.
strings
.
make_uri
(
input
),
options
=
options
,
name
=
name
,
duration
=
duration
}})
elseif
command
==
"pl_play"
then
if
id
==
-
1
then
vlc
.
playlist
.
play
()
...
...
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