Not logged in. · Lost password · Register
Forum: General discussion RSS
Shoutcast control
Avatar
eracerbit #1
Member since Apr 2004 · 15 posts · Location: FL,US
Group memberships: Members
Show profile · Link to this post
I haven't been using BrowseAmp that long (just today) but it's awesome and I'm already working on a skin for it.

However, I listen to Shoutcast streams much much more than MP3s, and I'd love to see Shoutcast implemented in your plug-in...

Consider something like this: (*deep breath*) I browse shoutcast on my 'remote control' box, click a PLS and rather than loading in default Winamp, I have my mime types for x-SCPLS set so windows runs a small batch file that executes some JS or VBS under WSH, which opens a small browser window to my server machine, and passes it the URL of the PLS as some parameter which your plugin will realize.

I'm willing to do all the scripting ;)
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Avatar
Henry (Administrator) #2
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Sorry, thought it would be useful to split the topic...

I'm not sure what exactly you want to do. Selecting a playlist with BrowseAmp also affects the SC stream connected to that Winamp. Maybe it's too early... *zzzz*
Avatar
eracerbit #3
Member since Apr 2004 · 15 posts · Location: FL,US
Group memberships: Members
Show profile · Link to this post
hehe.. let me try to be more clear :)
From what I can see, BrowseAmp can only load files that reside on the server: MP3s, or M3Us and PLS' with maybe a url rather than local link.  But all files that Winamp can be told to play must be on the server machine.

Couldn't there be a way to have Winamp play a file that isn't on the server machine, but just an absolute URL?

example:

instead of http://127.0.0.1:8080/browser.html?file=Pr...D+Breathe%2Emp3
have something like http://127.0.0.1:8080/browser.html?file=ht....247.72.42:8000

-nick
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Avatar
eracerbit #4
Member since Apr 2004 · 15 posts · Location: FL,US
Group memberships: Members
Show profile · Link to this post
looks like invision filtered some of that but im sure u get the idea :)
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Avatar
Henry (Administrator) #5
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
The eXtended skin has an url input field at the bottom of the browser page. Use this to add urls or whatever to the playlist. It uses the 'add' command so you can treat an url as every local media file. If you want to create a predefined list of SC stations you could use the inifile commands and some JavaScript to create a browseable list.
Avatar
eracerbit #6
Member since Apr 2004 · 15 posts · Location: FL,US
Group memberships: Members
Show profile · Link to this post
hAHAHah i think i had an older version of BA too :-p maybe get winamp to update their plugins lisp.

thanks Henry :)
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Avatar
eracerbit #7
Member since Apr 2004 · 15 posts · Location: FL,US
Group memberships: Members
Show profile · Link to this post
Ok, just one more bone to pick ;)

on shoutcast.com, the "Tune In!" link URLs are like this:
 http://shoutcast.com/sbin/shoutcast-playlist.pls?rn=4219&file=filename.pls

Copying a URL like that and adding it directly to winamp's playlist causes winamp to resolve the actual host.

However, copying a url like that to the 'Add' box on BrowseAmp does not seem to work... it just adds a dummy file "FILEnAME" to the playlist.

I've written a bookmarklet to change all "Tune In!" links on a SC page to a url like this:
http://127.0.0.1:8080/index.html?add=http://shoutcast.com/sbin/shoutcast-playlist.pls?rn=4219&file=filename.pls

But at this point it doesnt do much good ;p

bookmarklet:
javascript:(function(){u="127.0.0.1:8080";l=document.links;for(a in l){if(l[a].href){if(l[a].href.indexOf("/sbin/shoutcast-playlist.pls?")!=-1){l[a].href="http://"+u+"/index.html?add="+l[a].href;l[a].target="BrowseAmp";l[a].innerHTML="[+]";}}}})()

bookmarklet is attached along with a more human-readable form.
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
The author has attached one file to this post:
bookmarklet.js 611 Bytes
You have no permission to open this file.
Avatar
Henry (Administrator) #8
Member since Jan 2003 · 865 posts · Location: Munich Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I've just tried your "TuneIn!" link with the add-box. Works fine! Resolves all three channels.  :-D  (I used Winamp 5.03 and BA 2.07)
Avatar
eracerbit #9
Member since Apr 2004 · 15 posts · Location: FL,US
Group memberships: Members
Show profile · Link to this post
Ok, I got it to work :)

Checked all checkboxes on "Music Folder" and "Security" tabs, and it works fine.

Probably setting "enable browsing outside root folder" fixed this?

thanks again Henry  B)
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Avatar
eracerbit #10
Member since Apr 2004 · 15 posts · Location: FL,US
Group memberships: Members
Show profile · Link to this post
ahh wait -

it does add it to PL, but it doesn't start playing, and the dummy "filename" file is still created.  pretty good enough anyways though ;)
<a href="http://www.way2.info" target="_blank">www.way2.info</a> - Find all information here
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 198.9 ms (108.4 ms) · 83 database queries in 71.6 ms
Current time: 2018-12-16, 05:38:59 (UTC +00:00)