]> git.sesse.net Git - vlc/commitdiff
use make_uri on mrl inputs
authorRob Jonson <rob@hobbyistsoftware.com>
Wed, 28 Sep 2011 12:05:13 +0000 (13:05 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 5 Oct 2011 16:50:13 +0000 (18:50 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
NEWS
share/lua/http/requests/README.txt
share/lua/intf/modules/httprequests.lua

diff --git a/NEWS b/NEWS
index 309843a389884022b9412254c7477395aeee11bc..ffb08daf9c4a8060040ea0adca10969682505b90 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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)
index e57ec3e9b49c61578d96dda4cf30d25e2b1ac93c..5cba1fdaeff5103569140bb139682258c66cf44c 100644 (file)
@@ -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>
index 4bcf0dffa22196e971f001e0181ebeca8b30e888..cd86113ae2ac30837dc8718a079ffad6e6319728 100644 (file)
@@ -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()