heres a set of actions to help with the use of a internal playlist
actions included
same old lua install routine, lua file and xml action file included in zip archive.Code:-- 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.

Reply With Quote
