[vlc-commits] lua: README: Add renderer discovery documentation
Hugo Beauzée-Luyssen
git at videolan.org
Fri Aug 21 16:51:41 CEST 2020
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Aug 19 10:46:13 2020 +0200| [062edb354454161e431cb50e87e79e439968a2c4] | committer: Hugo Beauzée-Luyssen
lua: README: Add renderer discovery documentation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=062edb354454161e431cb50e87e79e439968a2c4
---
share/lua/README.txt | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/share/lua/README.txt b/share/lua/README.txt
index a944634a3f..b9072bb454 100644
--- a/share/lua/README.txt
+++ b/share/lua/README.txt
@@ -366,6 +366,24 @@ playlist.move( id_item, id_where ): take id_item and if id_where has children, i
FIXME: add methods to get an item's meta, options, es ...
+Renderer discovery
+------------------
+
+Renderer discovery scripts can use the following RD functions:
+
+rd.create( module_type ): Create a renderer discovery object using the
+ module type provided as <module_type> (eg. "mdns_renderer")
+
+The renderer discovery object has the following members:
+ :list() List all known renderers
+ This returns an array of objects containings:
+ .type: The type of this renderer
+ .name: The renderer name
+ .id: The id, to be provided to select()
+ .selected: True if the renderer is currently selected
+
+ :select(<id>) Select a renderer, or disable the current one by providing -1
+
Services discovery
------------------
More information about the vlc-commits
mailing list