X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=share%2Flua%2FREADME.txt;h=f7e6283edb527b78efc7d5758fbcf23e986f57aa;hb=bf92daa5d47cfa6379cfe5e1ce80533e92b4f6cc;hp=9d86c72ecfb87081cc9292505dc4fed14142ca3e;hpb=90583f82bc7355314476a03b8e8760aad4efb897;p=vlc diff --git a/share/lua/README.txt b/share/lua/README.txt index 9d86c72ecf..f7e6283edb 100644 --- a/share/lua/README.txt +++ b/share/lua/README.txt @@ -17,6 +17,7 @@ All the Lua standard libraries are available. * Art fetcher (see meta/README.txt) * Interface (see intf/README.txt) * Extensions (see extensions/README.txt) + * Services Discovery (see sd/README.txt) Lua scripts are tried in alphabetical order in the user's VLC config directory lua/{playlist,meta,intf}/ subdirectory on Windows and Mac OS X or @@ -129,6 +130,14 @@ input.item(): Get the current input item. Input item methods are: .played_abuffers .lost_abuffers +MD5 +--- +md5( str ): return the string's hash +md5(): create an md5 object with the following methods: + :add( str ): add a string to the hash + :end_(): finish hashing + :hash(): return the hash + Messages -------- msg.dbg( [str1, [str2, [...]]] ): Output debug messages (-vv). @@ -313,6 +322,17 @@ sd.get_services_names(): Get a table of all available service discovery sd.add( name ): Add service discovery. sd.remove( name ): Remove service discovery. sd.is_loaded( name ): Check if service discovery is loaded. +sd.add_item( ... ): Add an item to the service discovery. + The item object has the same members as the one in playlist.add(). + Returns the input item. +sd.add_node( ... ): Add a node to the service discovery. + The node object has the following members: + .title: the node's name + .arturl: the node's ArtURL (OPTIONAL) + +n = vlc.sd.add_node( {title="Node"} ) +n:add_subitem( ... ): Same as sd.add_item(), but as a subitem of n. +n:add_node( ... ): Same as sd.add_node(), but as a subnode of n. Stream ------