1
mirror of https://code.videolan.org/videolan/vlc synced 2024-10-11 06:21:30 +02:00
vlc/share/lua/playlist
2009-11-03 12:15:36 +03:00
..
anevia_streams.lua
anevia_xml.lua A simplistic parser for the new and improved anevia playlist format. 2009-06-12 15:47:38 +02:00
appletrailers.lua appletrailers.lua add the forgotten vlc lua edition 2009-10-06 22:51:29 +03:00
bbc_co_uk.lua
break.lua
canalplus.lua
cue.lua
dailymotion.lua Dailymotion: fix double encoding in video description 2009-07-21 18:29:18 +02:00
france2.lua
googlevideo.lua
joox.lua
katsomo.lua katsomo.lua: add code to handle both treeId and progId in url 2009-10-17 20:30:06 +03:00
koreus.lua
lelombrik.lua
megavideo.lua
metacafe.lua
mpora.lua LUA mpora parser: fix copyright year. 2009-08-19 17:40:11 +04:00
pinkbike.lua LUA playlist: add support for pinkbike videos. 2009-11-03 12:15:36 +03:00
README.txt Cannot read from probe, not from peek 2009-04-14 11:25:24 +03:00
rockbox_fm_presets.lua Rockbox FM radio presets parser script 2009-09-25 22:22:23 +02:00
vimeo.lua LUA playlist scripts: add support for Vimeo URL parsing. 2009-08-19 16:52:38 +04:00
youtube_homepage.lua
youtube.lua lua: update the youtube script to the new version of their website 2009-10-23 13:03:30 +02:00

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.