Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Posts
    5,380

    Playlist Actions

    heres a set of actions to help with the use of a internal playlist

    actions included
    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.
    same old lua install routine, lua file and xml action file included in zip archive.
    Last edited by RizlaUK; 02-01-2009 at 11:34 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  2. #2
    Join Date
    Jul 2007
    Posts
    1,512
    Thanks for this kool tool

  3. #3
    Join Date
    Dec 2004
    Location
    Texas
    Posts
    239
    Thanks RizlaUK!

  4. #4
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Wow this is great, thanks rizla
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  5. #5
    Join Date
    Jul 2004
    Location
    Nîmes - France
    Posts
    16
    THANK YOU VERY MUCH for this work

  6. #6
    Join Date
    Feb 2008
    Location
    Western Pennsylvania
    Posts
    555
    Where can I get the .zip file??

  7. #7
    Join Date
    May 2006
    Posts
    5,380
    Sorry Joe, i no longer have the files, i lost all my old stuff when my old PC died :(
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. Uninstall a Shortcut Created with Actions
    By Adam in forum Setup Factory 8.0 FAQ
    Replies: 0
    Last Post: 04-28-2008, 10:38 AM
  2. TrueUpdate 2.0 Update (v2.0.6.0) Released
    By Brett in forum TrueUpdate 2.0
    Replies: 0
    Last Post: 10-31-2006, 01:10 PM
  3. Stuck in XML
    By playmenow in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 03-17-2006, 01:03 PM
  4. HOWTO: Set up an MP3 Playlist
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-24-2002, 11:57 AM
  5. HOWTO: Uninstall a Shortcut Created with Actions
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 09:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts