Commit ab90a0b9 authored by Rob Jonson's avatar Rob Jonson Committed by Jean-Baptiste Kempf

use make_uri on mrl inputs

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 68f5f49e
......@@ -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)
......
......@@ -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>
......
......@@ -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 (val)
vlc.input.add_subtitle (vlc.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()
......
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