You'll have a challenge here because natively Lua has no directory commands. I have never tried reading in the results of a system call into a Lua table, but it might be possible. I'd ask on #Lua or check Lua docs to see if such a thing is even possible. Once you have the files in a table then you could do the next/prev/first/last/repeat thing. -MC On Tue, Jul 3, 2012 at 8:58 AM, Thomas Hoellriegel <admin@blindi.net> wrote:
Hi guys, I have many potcast mp3 files in a directory: /home/postcast the files beginning with: postcast_year_mon_day_hour_**minutes_.mp3 I like to create a playlist in lua: 1. read all files, and make a messagecount. 2. generate a menu to use from phone:
press 1 for the next postcast. 2, To repeate the postcast 3. to go to the prev potcast 4 for the fist potcast 5 for the last potcast 6 to hear the date an time for these.
I like to sort, firt in first out.
I don.t find a command in lua: to read the filelist, to generate a filecount. and to generate a navigation keys: forward, backward, repeate and say the time and date of the current file.
Can your help please?
nice thanks to all.
--------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/**listinfo/blinde-misc<http://www.blindi.net/mailman/listinfo/blinde-misc>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org