Old 7th May 2015, 14:02   #1
Rhino Cracker
Junior Member
 
Join Date: May 2015
Posts: 2
Endless Online Radio Playback

Hi,

I'm using winamp on a machine without any keyboard, mouse or screen attached to it. I just log in via VNC when it's necessary.
I'm using this machine to play online radios.

Every time when there is no internet connection aviable, winamp gets stuck in buffering. I have to manually stop and restart the stream, which is uncomfortable to me.^^

Is there a way to make winamp re-connect to the stream when the connection if lost (even for a few minutes or hours)?
Or even better: to make it just skip to the next entry in playlist (so i could place some mp3s in there in case of no internet connection is aviable.)

Thanks in advance for any answeres.
Rhino Cracker is offline   Reply With Quote
Old 11th August 2015, 17:27   #2
Rhino Cracker
Junior Member
 
Join Date: May 2015
Posts: 2
If there is no help, you have to help yourself.....

code:
@echo off

:loop
For /F "tokens=* delims=" %%i in ('tasklist /V /FI "imagename eq winamp.exe" ^|find "[Buffer 0%%"') Do WACommand.exe /next
warten.exe 10000 > nul
goto :loop


requires WACommand.exe and warten.exe (self-compiled c-exe only calling system.wait function with the submitted wait time in milliseconds).

I can provide you with the files if wanted - but a system wait finction can also be implemented otherwise (e.g. a ping to yourself).


==================================================
EDIT: Attached required files including source for warten.exe
Attached Files
File Type: zip Warteprog.zip (141.6 KB, 93 views)
File Type: zip WACommand.zip (17.8 KB, 101 views)
Rhino Cracker is offline   Reply With Quote
Old 12th August 2015, 01:51   #3
ryerman
Major Dude
 
ryerman's Avatar
 
Join Date: Mar 2010
Location: Canada
Posts: 726
Nice work.
It usually feels pretty good to solve a problem yourself.

FYI
Winamp has command line capability that makes WACommand unnecessary.
You can see the options by typing winamp /? in a Command window opened at the Winamp installation folder.

If you also replace warten.exe 10000 > nul with timeout /T 10, special requirements can be avoided.

Windows 10 Home, 64 bit, Winamp 5.666, Bento Skin
ryerman is offline   Reply With Quote
Old 17th August 2015, 01:48   #4
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,030
Send a message via Skype™ to thinktink
Try BogProg KeepAlive.

http://www.google.com/search?q=BogProg+KeepAlive
thinktink is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Winamp > Winamp Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump