creating a polling system
-
Hi! I am not sure where should I post this topic. I just need an idea about my task below a central server polls from a legacy server for media updates. the media file has incremental file name i.e 1.mpeg, 2.mpeg and so forth. central server needs to poll the legacy server and check for update via ftp. once it finds update it needs to copy the files and bring into central server from legacy server and distribute to its 600 clients. each client plays those mpegs constantly and central server needs to update the content in clients playlist automatically. for example clients current playlist could be 1.mpeg 2.mpeg and so forth. how do i keep adding the updated file to the play list and keep deleting if the files are more than 20 i.e. play 1-20 and as soon as it hits 21 delete old files please help i dont know how to acheive this and which what program. thanks in forward. please just give me an idea how to achieve this
-
Hi! I am not sure where should I post this topic. I just need an idea about my task below a central server polls from a legacy server for media updates. the media file has incremental file name i.e 1.mpeg, 2.mpeg and so forth. central server needs to poll the legacy server and check for update via ftp. once it finds update it needs to copy the files and bring into central server from legacy server and distribute to its 600 clients. each client plays those mpegs constantly and central server needs to update the content in clients playlist automatically. for example clients current playlist could be 1.mpeg 2.mpeg and so forth. how do i keep adding the updated file to the play list and keep deleting if the files are more than 20 i.e. play 1-20 and as soon as it hits 21 delete old files please help i dont know how to acheive this and which what program. thanks in forward. please just give me an idea how to achieve this
-
You have issues to resolve; 1- How to get latest file from FTP? 2- How to add it in playlist and keep thecount up to 20? Ans 1- You can use a windows service to keep on checking the FTP location for any new file avaialble. If you get any updates using some FTP client you can download it. Ans 2- a) Adding newly downloaded file in the playlist depends mostly on the player that you are using. There should external functions avaialble to call. b) This has some trick. Its like a queue where you can not hold more than 20 items. Use simple arraylist for the files to hold and when the count goes up, remove the top 1. You can start with this.