Go Back   Winamp Forums > SHOUTcast > SHOUTcast Discussions

Reply
Thread Tools Search this Thread Display Modes
Old 10th January 2012, 19:32   #41
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,099
Nice!
Smelter is online now   Reply With Quote
Old 10th January 2012, 21:13   #42
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,489
Quote:
Originally Posted by thinktink View Post
Sail a Windows and Linux version over this way yonder.
sent email with win32 and linux86 builds which also has the shoutcast.swf self-hosting working. have confirmed it working with jaromanda's player though thundersnow doesn't like how i'm running it as it tries to hit the root domain to get the files which i'm not able to ensure with my web-side testing at the moment.

-daz
DrO is offline   Reply With Quote
Old 10th January 2012, 22:02   #43
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: Somewhere on this planet.
Posts: 2,219
Send a message via Skype™ to thinktink
Om Nom Nom...

Testing shortly...
thinktink is offline   Reply With Quote
Old 11th January 2012, 00:09   #44
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: Somewhere on this planet.
Posts: 2,219
Send a message via Skype™ to thinktink
Need to support HEAD for swf resource.

While testing under Windows:

No port 843 policy server enabled during this test.

In the reply header I think you need a space between:
code:
Content-Type:<Need a space here>text/application/ x-shockwave-flash
Content-Length:<and here>?????



You've got the type of the SWF resource as "text/application/ x-shockwave-flash" when it should be "application/x-shockwave-flash" in the header.

You should make note in the documentation that you still need to supply a crossdomain policy file in the DNAS configuration if you don't configure the DNAS to service crossdomain on port 843 (or whatever port you set it to.)

Otherwise this seemed to work fine for PTS. I ran a webserver to serve the page that referances the swf on the DNAS (full URL and port to it) and made the playlist.xml file scriptable so that it would present the host to connect dynamically (to wherever it was connected to (the Host field in the request header.))

If you know what you're doing it's not very difficult to get it working with full metadata support with PTS.

Port 843 policy serving also works as expected. Only issue is that you need to give the ability to change the port number for custom swf players, just like in the Transcoder.





Will test Linux version next. Wanted to get this all down before I forgot.








While testing under Windows I noticed that in my Application Log sc_serv was reporting that "faviconmimetype=image/x-icon" is an invalid config option. Looks like it's been doing that for a while so it's not specific to this test build.
thinktink is offline   Reply With Quote
Old 11th January 2012, 04:46   #45
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,099
if you need any thing in the swf department from me, just holler.
Smelter is online now   Reply With Quote
Old 11th January 2012, 06:41   #46
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: Somewhere on this planet.
Posts: 2,219
Send a message via Skype™ to thinktink
Took longer than I thought to install the Adobe Flash Player into Firefox on Ubuntu. That was annoying.

Anyways, linux testing is complete. Same suggestions as my previous post, header, type, ports, spacing, and whatnot. Otherwise PTS seems to work just fine on Linux as well. Tested with Apache2 w/php on Oracle VMbox Ubuntu 10.04 LTS.

thinktink is offline   Reply With Quote
Old 11th January 2012, 13:33   #47
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,489
Quote:
Originally Posted by thinktink View Post
In the reply header I think you need a space between:
code:
Content-Type:<Need a space here>text/application/ x-shockwave-flash
Content-Length:<and here>?????

it shouldn't need a space to work and most of the DNAS doesn't output a space in those values as whitespace should be ignored with such things (from my understanding of how header values are meant to be processed).

Quote:
Originally Posted by thinktink View Post
You've got the type of the SWF resource as "text/application/ x-shockwave-flash" when it should be "application/x-shockwave-flash" in the header.
fixed, that was late night just before sleep coding at it's best, heh. fixed.

Quote:
Originally Posted by thinktink View Post
You should make note in the documentation that you still need to supply a crossdomain policy file in the DNAS configuration if you don't configure the DNAS to service crossdomain on port 843 (or whatever port you set it to.)
the preliminary doc edits i've made put the new config option in the same section as the one for the file specification, though will be making it provide the default contents of the crossdomain.xml file if one cannot be found just to ensure it's not going to fail too badly (like is done with the robots.txt file support).

Quote:
Originally Posted by thinktink View Post
Port 843 policy serving also works as expected. Only issue is that you need to give the ability to change the port number for custom swf players, just like in the Transcoder.
i had initially done it that way but then from my tests and reading around, it seems like port 843 is only used anyway. i can add it back in but was trying to keep things simple (and was thinking of changing sc_trans to just toggle 843 on/off).

Quote:
Originally Posted by thinktink View Post
While testing under Windows I noticed that in my Application Log sc_serv was reporting that "faviconmimetype=image/x-icon" is an invalid config option. Looks like it's been doing that for a while so it's not specific to this test build.
have fixed that as there was a typo in the internal name of the config option.


so bar the few little quirks, i just want to make sure if we can call this a success?

-daz
DrO is offline   Reply With Quote
Old 11th January 2012, 13:46   #48
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,489
Quote:
Originally Posted by DrO View Post
the preliminary doc edits i've made put the new config option in the same section as the one for the file specification, though will be making it provide the default contents of the crossdomain.xml file if one cannot be found just to ensure it's not going to fail too badly (like is done with the robots.txt file support).
just had a thought about this and am thinking of changing things so that by default a crossdomain.xml will not be present in the root of the sc_serv install folder and will instead provide what has been in the default file in-dnas but have it output the following:
Quote:
<allow-access-from domain="*" to-ports="portbase,portbase+1"/>
or
Quote:
<allow-access-from domain="*" to-ports="portbase,portlegacy"/>
or
Quote:
<allow-access-from domain="*" to-ports="portbase"/>
i.e. all 3 public port configurations allowed, as it's probably better to only allow access to the ports related to the DNAS than a blanket access.

-daz
DrO is offline   Reply With Quote
Old 11th January 2012, 17:20   #49
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: Somewhere on this planet.
Posts: 2,219
Send a message via Skype™ to thinktink
Quote:
Originally Posted by DrO View Post
so bar the few little quirks, i just want to make sure if we can call this a success?
Yes.

Quote:
Originally Posted by DrO View Post
just had a thought about this and am thinking of changing things so that by default a crossdomain.xml will not be present in the root of the sc_serv install folder and will instead provide what has been in the default file in-dnas but have it output the following:
Sounds about right (a security wonk would probably tell you option 3.) However if a crossdomain file is present then I think it should override the default behavior (I think that's what you meant to imply, just double checking.)

thinktink is offline   Reply With Quote
Old 12th January 2012, 09:26   #50
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,489
Quote:
Originally Posted by thinktink View Post
Sounds about right (a security wonk would probably tell you option 3.) However if a crossdomain file is present then I think it should override the default behavior (I think that's what you meant to imply, just double checking.)
yup, if a custom file is specified / present then that will be used instead of the in-built option. have also added an option on the server admin summary page which will allow for clearing the cached instance of that file so it can be updated whilst the DNAS is running (otherwise it required the DNAS to be restarted or would keep re-loading the file from disk everytime).

have sent a link to a newer windows test build for some of the points raised.

-daz
DrO is offline   Reply With Quote
Old 12th January 2012, 20:44   #51
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: Somewhere on this planet.
Posts: 2,219
Send a message via Skype™ to thinktink
Windows and Linux all working. All quirks you addressed appear resolved in all versions provided.
thinktink is offline   Reply With Quote
Old 12th January 2012, 20:46   #52
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: Somewhere on this planet.
Posts: 2,219
Send a message via Skype™ to thinktink
lol, gawdamn, now it's like you have to be TRYING to get it to fail. lol
thinktink is offline   Reply With Quote
Old 12th January 2012, 20:53   #53
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,489
cool, thanks for the confirmation. can scrub that off the todo list now

-daz
DrO is offline   Reply With Quote
Old 12th January 2012, 21:17   #54
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: Somewhere on this planet.
Posts: 2,219
Send a message via Skype™ to thinktink
lol, now I guess pretty soon the only thing my SPS is going to be good for are legacy broadcasters. lol, That's still good though.
thinktink is offline   Reply With Quote
Old 12th January 2012, 21:29   #55
DrO
-
 
DrO's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 22,489
unless i do things right so that no one stays on the legacy dnas... i can only dream, heh.

-daz
DrO is offline   Reply With Quote
Old 12th January 2012, 21:52   #56
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: Somewhere on this planet.
Posts: 2,219
Send a message via Skype™ to thinktink
Quote:
Originally Posted by DrO View Post
unless i do things right so that no one stays on the legacy dnas... i can only dream, heh.

-daz
lol
thinktink is offline   Reply With Quote
Old 23rd February 2012, 07:16   #57
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: Somewhere on this planet.
Posts: 2,219
Send a message via Skype™ to thinktink
I wonder how long THIS link will last.
http://www.mediafire.com/?4odmoduj1ntsfon

Providing another link again until the new v2 DNAS comes out.
thinktink is offline   Reply With Quote
Old 26th February 2012, 05:33   #58
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,099
thunder now moved to svn

http://code.google.com/p/project-thunder-snow/
Smelter is online now   Reply With Quote
Reply
Go Back   Winamp Forums > SHOUTcast > SHOUTcast Discussions

Tags
socket policy server

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