Roadkill helps to create a playlist. Here are the steps :
- Thanks to the ui, a file will be created
- After selecting the file to load, a playlist will be created
- The playlist will be given to vlc and launched jsut after
A composition is a lua table, containing some root keys with items (lua tables) inside, written into a file.
work-before-all
: if you want a medium to be launched only once at the beginning of the playlistwork-start
: if you want a medium to be launched before every itemswork-items
: itemswork-end
: if you want a medium to be launched after every itemswork-after-all
: if you want a medium to be launched only once at the end of the playlist
Here are the list of accepted medium with their associated keys.
- Required
file
, location of the medium to add to the playlist.
- Optional
startAt
, time (in seconds) when the medium starts.stopAt
, time (in seconds) when the medium stops.
- Required
folder
, location of the folder to scan (then add the files to the playlist).
- Optional
random
, select media randomly.loop
, number of repetition of an item.nbElements
, number of media to keep.- any of the optional keys from File
- Required
url
, url of the medium.
return {
['work-before-all'] = {
['file'] = '/path/to/musics/warm-up.mp3',
['stopAt'] = 5 * 60, -- 5 minutes
},
['work-end'] = {
['file'] = '/path/to/musics/take-a-break.mp3',
['stopAt'] = 10,
},
['work-items'] = {
{
['folder'] = '/path/to/videos/tabata',
['random'] = true,
['loop'] = 8,
['nbElements'] = 6,
['stopAt'] = 20,
},
},
}
return {
['work-start'] = {
['file'] = '/path/to/musics/get-ready.mp3',
['stopAt'] = 5,
},
['work-items'] = {
{
['file'] = '/path/to/todos/todo-1.png',
['stopAt'] = 25 * 60, -- 25 minutes
},
{
['file'] = '/path/to/musics/chill.mp3',
['stopAt'] = 5 * 60, -- 5 minutes
},
{
['file'] = '/path/to/todos/todo-2.png',
['stopAt'] = 25 * 60, -- 25 minutes
},
{
['file'] = '/path/to/musics/chill.mp3',
['stopAt'] = 5 * 60, -- 5 minutes
},
{
['file'] = '/path/to/todos/todo-3.png',
['stopAt'] = 25 * 60, -- 25 minutes
},
{
['file'] = '/path/to/musics/chill.mp3',
['stopAt'] = 5 * 60, -- 5 minutes
},
{
['file'] = '/path/to/todos/todo-4.png',
['stopAt'] = 25 * 60, -- 25 minutes
},
{
['file'] = '/path/to/musics/long-chill.mp3',
['stopAt'] = 25 * 60, -- 25 minutes
},
},
['work-end'] = {
['file'] = '/path/to/musics/take-a-break.mp3',
['stopAt'] = 5,
},
}