mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-11 06:21:30 +02:00
.. | ||
anevia_streams.lua | ||
anevia_xml.lua | ||
appletrailers.lua | ||
bbc_co_uk.lua | ||
break.lua | ||
canalplus.lua | ||
cue.lua | ||
dailymotion.lua | ||
france2.lua | ||
googlevideo.lua | ||
joox.lua | ||
katsomo.lua | ||
koreus.lua | ||
lelombrik.lua | ||
megavideo.lua | ||
metacafe.lua | ||
mpora.lua | ||
pinkbike.lua | ||
README.txt | ||
rockbox_fm_presets.lua | ||
vimeo.lua | ||
youtube_homepage.lua | ||
youtube.lua |
Instructions to code your own VLC Lua playlist script. $Id$ See lua/README.txt for generic documentation about Lua usage in VLC. Examples: See dailymotion.lua, googlevideo.lua, metacafe.lua, youbtube.lua and youtube_homepage.lua . VLC Lua playlist modules should define two functions: * probe(): returns true if we want to handle the playlist in this script * parse(): read the incoming data and return playlist item(s) Playlist items use the same format as that expected in the playlist.add() function (see general lua/README.txt) VLC defines a global vlc object with the following members: * vlc.path: the URL string (without the leading http:// or file:// element) * vlc.access: the access used ("http" for http://, "file" for file://, etc.) * vlc.peek( <int> ): return the first <int> characters from the playlist file. * vlc.read( <int> ): read <int> characters from the playlist file. THIS FUNCTION CANNOT BE USED IN probe(). * vlc.readline(): return a new line of playlist data on each call. THIS FUNCTION CANNOT BE USED IN probe(). Available VLC specific Lua modules: msg and strings. See lua/README.txt.