SoundMindRadio Posted December 14, 2010 Share Posted December 14, 2010 I need a pal script that can automatically pick up a stream broadcasting at say http://192.168.0.1:80 and after the 2 hour show, eject it from the deck and replace it with nothing. Can somebody help me with this? I will sing your praises till the day I die if you do. Link to comment Share on other sites More sharing options...
shoutcaststreaming Posted December 14, 2010 Share Posted December 14, 2010 Excuse me, but you posted on this already and beat it to death: http://forums.broadcastingworld.net/showthread.php?t=9815 SCS - Dedicated Bandwidth Servers Shoutcast / Icecast / Windows Media Transcoding - Auto DJ - Mobile Radio - FLASH Players - Auto DJ Broadcasting World's Stream Host of the Month Link to comment Share on other sites More sharing options...
SoundMindRadio Posted December 14, 2010 Author Share Posted December 14, 2010 Well, beaten to death is a bit of an overstatement. I never got an eject deck script and the one I had running before worked fine minus the the eject deck part. I didn't think it made sense to resurrect my previous thread but then again, I didn't realize it was still on the front page of the forum section. Figured it would have dropped off the page by now. So if it isn't too much trouble... Does anybody know the script to eject a deck? Maybe altering this line will do the job ActivePlayer.FadeToNext; Can you fade to stop? Something like ActivePlayer.FadeToStop; Link to comment Share on other sites More sharing options...
SpazzRadio Posted December 14, 2010 Share Posted December 14, 2010 try this ... ActivePlayer.Eject; Not Tested, but i'm pretty sure it will do the trick. SpazzRadio.com Home of Absolute Rockz, Absolute Spazz, Always HOT Country, and Absolute Hitz Link to comment Share on other sites More sharing options...
SoundMindRadio Posted December 15, 2010 Author Share Posted December 15, 2010 That worked great. Now I am having a trouble with this... ActivePlayer.FadeToNext; The problem with it is that it is not active. The player needs to be started. I tried ActivePlayer.Play; but as I suspected, it did not work. Any suggestions for that? Link to comment Share on other sites More sharing options...
SoundMindRadio Posted December 15, 2010 Author Share Posted December 15, 2010 Ok, I found IdlePlayer.Play; and it worked, but I followed up with ActivePlayer.FadeToNext; and that did not insert my track from the cue... so I am on the hunt for the script that will let me take a stream in my cue and add it to deck A. Link to comment Share on other sites More sharing options...
SpazzRadio Posted December 15, 2010 Share Posted December 15, 2010 after you 'FadeToNext' then you should be able to 'IdlePlayer.Play;' again and that should pull the next item from your Queue SpazzRadio.com Home of Absolute Rockz, Absolute Spazz, Always HOT Country, and Absolute Hitz Link to comment Share on other sites More sharing options...
SoundMindRadio Posted December 15, 2010 Author Share Posted December 15, 2010 Ok, I got it working perfectly. Here is the script for anybody who wants to use it. It is a modification of a script I found online. { CONFIGURATION } {================================================= =} const ShowURL = 'http://stream.com:6558'; // const StartTime = '12:00:00'; // const EndTime = '13:00:00'; // { IMPLEMENTATION } {--------------------------------------------------} begin {Wait for the show to start} PAL.WaitForTime(StartTime); Queue.Clear; Queue.AddURL(ShowURL,ipTop); Queue.AddURL(ShowURL,ipTop); DeckA.Play; DeckA.Next; Queue.AddURL(ShowURL,ipTop); Queue.AddURL(ShowURL,ipTop); Queue.AddURL(ShowURL,ipTop); Queue.AddURL(ShowURL,ipTop); Queue.AddURL(ShowURL,ipTop); Queue.AddURL(ShowURL,ipTop); Queue.AddURL(ShowURL,ipTop); PAL.WaitForTime(EndTime); Queue.Clear; DeckA.Eject; end Basically this adds a stream via address and port to the cue 10 times once the start time is reached. That way there is backup streams in the cue in case it doesn't buffer right at first for any reason or drops during the stream. Then it lets it continue until the end time, it clears the cue and ejects DeckA. Thanks for your help Spazz! Link to comment Share on other sites More sharing options...
GKIye Posted December 15, 2010 Share Posted December 15, 2010 With a use of the BW search tool you would have found this into my sticky topics : http://forums.broadcastingworld.net/showthread.php?t=7199 Visit and listen @ BW ! Link to comment Share on other sites More sharing options...
SoundMindRadio Posted December 15, 2010 Author Share Posted December 15, 2010 I did read through that but didn't find what I was looking for. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.