Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
809e98a6
Commit
809e98a6
authored
Feb 20, 2010
by
Fabio Ritrovato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua SD: add a bit of documentation
parent
3590d1c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
share/Makefile.am
share/Makefile.am
+1
-0
share/lua/README.txt
share/lua/README.txt
+12
-0
share/lua/sd/README.txt
share/lua/sd/README.txt
+19
-0
No files found.
share/Makefile.am
View file @
809e98a6
...
...
@@ -274,6 +274,7 @@ EXTRA_DIST += \
lua/intf/dumpmeta.lua
\
lua/modules/sandbox.lua
\
lua/modules/simplexml.lua
\
lua/sd/README.txt
\
lua/sd/fmc.lua
\
lua/sd/freebox.lua
\
lua/sd/frenchtv.lua
...
...
share/lua/README.txt
View file @
809e98a6
...
...
@@ -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
...
...
@@ -313,6 +314,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
------
...
...
share/lua/sd/README.txt
0 → 100644
View file @
809e98a6
Instructions to code your own VLC Lua services discovery script.
$Id$
See lua/README.txt for generic documentation about Lua usage in VLC.
Examples: See fmc.lua, freebox.lua, frenchtv.lua
VLC Lua SD modules should define two functions:
* descriptor(): returns a table with information about the module.
The table has the following members:
.title: the name of the SD
* main(): will be called when the SD is started
User defined modules stored in the share/lua/modules/ directory are
available. For example, to use the sandbox module, just use
'require "sandbox"' in your interface.
Available VLC specific Lua modules: input, msg, misc, net, object, playlist, sd,
strings, variables, stream, gettext, xml. See lua/README.txt.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment