[vlc-commits] lua/http: add pl_sd_(add|remove) HTTP requests
Rémi Denis-Courmont
git at videolan.org
Sun Mar 3 18:36:59 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 3 19:25:50 2019 +0200| [9708665a0fbd7c4961caaae70f0684881123214a] | committer: Rémi Denis-Courmont
lua/http: add pl_sd_(add|remove) HTTP requests
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9708665a0fbd7c4961caaae70f0684881123214a
---
share/lua/http/requests/README.txt | 6 ++++++
share/lua/intf/modules/httprequests.lua | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/share/lua/http/requests/README.txt b/share/lua/http/requests/README.txt
index 625081670c..e2723e7831 100644
--- a/share/lua/http/requests/README.txt
+++ b/share/lua/http/requests/README.txt
@@ -124,6 +124,12 @@ status.xml or status.json
> toggle fullscreen:
?command=fullscreen
+> enable services discovery module <val>:
+ ?command=pl_sd_add&val=<val>
+
+> disable services discovery module <val>:
+ ?command=pl_sd_remove&val=<val>
+
> set volume level to <val> (can be absolute integer, percent or +/- relative value):
?command=volume&val=<val>
Allowed values are of the form:
diff --git a/share/lua/intf/modules/httprequests.lua b/share/lua/intf/modules/httprequests.lua
index 094bf3baa0..31de728aa2 100644
--- a/share/lua/intf/modules/httprequests.lua
+++ b/share/lua/intf/modules/httprequests.lua
@@ -148,6 +148,10 @@ processcommands = function ()
else
vlc.sd.add(val)
end
+ elseif command == "pl_sd_add" then
+ vlc.sd.add(val)
+ elseif command == "pl_sd_remove" then
+ vlc.sd.remove(val)
elseif command == "fullscreen" then
if vlc.object.vout() then
vlc.video.fullscreen()
More information about the vlc-commits
mailing list