PDA

View Full Version : Playlist Actions



RizlaUK
04-29-2008, 07:09 PM
heres a set of actions to help with the use of a internal playlist

actions included

-- Playlist.AddFile(string Filepath);, Adds an audio file to the playlist and returns the index of the new playlist item, -1 if any error.
-- Playlist.AddFolder(string Folderpath, boolean Recurse, function CallBack, function FoundCallBack);, Searches for audio files in a folder and adds them to the playlist, returns the number of tracks added to the playlist, 0 if any error
-- Playlist.AddM3U(string Filepath);, Adds a m3u file to the playlist and returns the number of tracks added, -1 if any error.
-- Playlist.SaveM3U(string Filepath);, Saves the playlist to m3u file, returns true is save ok, false if not.
-- Playlist.Clear();, Clears the playlist, returns nothing.
-- Playlist.Count();, Returns the number of items in the playlist.
-- Playlist.Load(number Index, boolean PlayAutomatic, boolean Loop);, Loads a playlist item into the audio channel, returns true if the item could be loaded, false if any error.
-- Playlist.Next();, Plays the next item in the playlist, returns true if the item could be loaded, false if any error.
-- Playlist.Prev();, Plays the previous item in the playlist, returns true if the item could be loaded, false if any error.
-- Playlist.CurrentIndex();, Returns the index of the current playlist item, else -1 if any error.
-- Playlist.CurrentPath();, Returns the filepath of the current playlist item, else a blank string ("") if any error.
-- Playlist.CurrentLength();, Returns the length in seconds of the current playlist item, else -1 if any error.
-- Playlist.CurrentLengthString();, Returns the length in string format eg: "00:01:34" of the current playlist item, else a blank string ("") if any error.
-- Playlist.CurrentSize();, Returns the size in bytes of the current playlist item, else -1 if any error.
-- Playlist.CurrentSizeString();, Returns the size in string format eg: "1.32 MB" of the current playlist item, else a blank string ("") if any error.


same old lua install routine, lua file and xml action file included in zip archive.

rexzooly
05-13-2008, 08:19 PM
Thanks for this kool tool :yes

mindstitchdr
05-14-2008, 11:07 AM
Thanks RizlaUK! :yes

Imagine Programming
06-05-2008, 09:03 AM
Wow this is great, thanks rizla:)

muthos
06-05-2008, 09:45 AM
THANK YOU VERY MUCH for this work :yes:yes

JDog37
02-18-2011, 06:50 PM
Where can I get the .zip file??

RizlaUK
02-24-2011, 07:59 AM
Sorry Joe, i no longer have the files, i lost all my old stuff when my old PC died :(