Interrupting itunes playback - how to do it automagically
July 21, 2010 9:25 AM Subscribe
I want to interrupt a playing itunes stream with another program's output. I already have many pieces in place, but I need to trigger itunes to shaddap. How to do?
posted by disclaimer to computers & internet (7 answers total)
My client is a coffee shop and has a large Muslim following. We want to have call to prayer announced over the sound system. The sound system in question is a PC with itunes installed. I've installed a piece of software called Athan from IslamicFinder that will announce Azan at the appropriate times. I've tried to contact them but no response.
So, what I want is:
- itunes is running a playlist
- Athan software says "stop! I need to play call to prayer"
- itunes pauses
- Call to prayer runs and completes
- itunes resumes.
I know I can script itunes, and I've tested that the itunes stop/start script is the right one for the job. The trick is how to tell it to do so.
It appears Athan uses windows media player to play call to prayer. Are there WMI events I could trap, and whats the best way to go about using them?
Any suggestions welcome!