Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
ab90a0b9
Commit
ab90a0b9
authored
Sep 28, 2011
by
Rob Jonson
Committed by
Jean-Baptiste Kempf
Oct 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use make_uri on mrl inputs
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
68f5f49e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
8 deletions
+21
-8
NEWS
NEWS
+1
-0
share/lua/http/requests/README.txt
share/lua/http/requests/README.txt
+17
-5
share/lua/intf/modules/httprequests.lua
share/lua/intf/modules/httprequests.lua
+3
-3
No files found.
NEWS
View file @
ab90a0b9
...
...
@@ -104,6 +104,7 @@ Interfaces:
* dbus: Upgrade to an mpris2 compliant interface, see http://www.mpris.org
* webUI/http: Rewrite of the web interface, using jQuery
* webUI/http: some requests are now supported in JSON in addition to XML
* webUI/http: path values for input and output are deprecated in favour of uri
Video Output:
* New video output based on Direct2D for Windows 7 and Vista (with Platform Update)
...
...
share/lua/http/requests/README.txt
View file @
ab90a0b9
...
...
@@ -13,22 +13,34 @@ Examples:
space -> +
...
Deprecation Notice:
---
The entire interface is moving to using <MRL> for input and output parameters and attributes
pl_play and in_enqueue previously accepted paths. This is still supported, but from 1.3 <MRL> will be required
where path attributes are provided in output, these should be ignored in favour of uri attributes
path support is scheduled to be removed entirely from 1.3
---
status.xml or status.json
===========
< Get VLC status information, current item info and meta.
< Get VLC version, and http api version
> add <
mrl
> to playlist and start playback:
?command=in_play&input=<
mrl
>&option=<option>
> add <
uri
> to playlist and start playback:
?command=in_play&input=<
uri
>&option=<option>
the option field is optional, and can have the values:
noaudio
novideo
> add <
mrl
> to playlist:
?command=in_enqueue&input=<
mrl
>
> add <
uri
> to playlist:
?command=in_enqueue&input=<
uri
>
> add subtitle to currently playing file
?command=addsubtitle&val=<
path
>
?command=addsubtitle&val=<
uri
>
> play playlist item <id>. If <id> is omitted, play last active item:
?command=pl_play&id=<id>
...
...
share/lua/intf/modules/httprequests.lua
View file @
ab90a0b9
...
...
@@ -83,11 +83,11 @@ processcommands = function ()
end
vlc.msg.err( "</options>" )
--]]
vlc
.
playlist
.
add
({{
path
=
input
,
options
=
options
}})
vlc
.
playlist
.
add
({{
path
=
vlc
.
strings
.
make_uri
(
input
)
,
options
=
options
}})
elseif
command
==
"addsubtitle"
then
vlc
.
input
.
add_subtitle
(
v
al
)
vlc
.
input
.
add_subtitle
(
v
lc
.
strings
.
make_uri
(
val
)
)
elseif
command
==
"in_enqueue"
then
vlc
.
playlist
.
enqueue
({{
path
=
input
,
options
=
options
}})
vlc
.
playlist
.
enqueue
({{
path
=
vlc
.
strings
.
make_uri
(
input
)
,
options
=
options
}})
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