BMS TV Player Scheduler
Background
The Billy Madison Show has a live video feed from inside the studio, Monday through Friday from 5AM to 10AM.
We only want to show the player during those times when they’re on the air, so we don’t have to really on the on-air talent to “start or stop” a live video stream.
How It Works
This is a simple scheduler in PHP that checks to see if the show is on or off the air, based on the current date and time.
If the show is on the air, it will show the video player.
If it is off the air, based on the current date and time, it will determine when the show will be back on the air and display a message setting that appointment time for the next time to listen or watch.
Eventually I’d like to build an admin interface for this to make it easier to manage on the back-end. Right now, vacation dates are hard-coded in the plugin.