When I try the listen link, the preroll does not play; Winamp just goes right to the stream. Winamp shows File 2 (stream) playing. For File 1, it shows this error message: [HTTP/1.1 404] Not Found http://mysite.com/prerolls/userbar.mp3
This means the pre-rolls aren't available on the webserver. The job of the PAL is to rotate the pre-roll, not to transfer it to a remote server. Consider looking into an FTP utility that can schedule periodic updates of the pre-roll.mp3; once an hour is a good target.
Since I run SAM, the database, and webserver all on one box after the PAL runs the changes are immediate. I do this because it is easy to maintain and easy to operate. Having a local co-location environment also helps (my hardware, their power + Internet). Although a scaled architecture is also nice (applications spread across multiple machines) it does have challenges when intra- and inter- networked machines need integrating.
In my SAM PAL Scripts window, prerolls.pal shows: Waiting for time 6:46:17. SAM is running on a simple Dell desktop through an ordinary T-1 line in my office. I don't know my Apache situation. Does this involve the webhost where I uploaded the pls file?
I PM'd you a screenshot. I noticed that userbar.mp3 had changed from replacing 1.mp3 to 3.mp3, so I think the PAL is working. I still don't understand how userbar.mp3 on my PC running SAM gets to my webhost where I uploaded the pls file.
Sounds like and looks like the PAL is running. The PAL is configured to loop every 2 hours so the waiting time displayed in the PAL window is 2 hours from the last run.
At this point the PAL is doing the job. Well done. Hopefully I've passed on a few PAL tidbits to help with other things.
If the pre-roll transfer becomes a problem then the last thing I can suggest is to write a batch/shell script scheduled by Windows Scheduler or crontab (Windows or *nix respevtively) that does something very simple on the webserver side such as (assuming 4 pre-rolls):
* rename pre-roll.mp3 to temp.mp3
* rename 1.mp3 to pre-roll.mp3
* rename 2.mp3 to 1.mp3
* rename 3.mp3 to 2.mp3
* rename 4.mp3 to 3.mp3
* rename temp.mp3 to 4.mp3
This simple rotates without "randomness".
These mp3's would exist in a folder on the webserver served by http://mysite.com/prerolls/pre-roll.mp3
If you're using Apache then "prerolls" is a folder off "htdocs".
- Steve Kunitzer
- SVS (Spacial Volunteer Support) / Forum Administrator