I have no problems with your changes (as long as they don't break the plugin

). In fact, keep 'em coming

tcpdump is fine for analysis, but it can be a bit cumbersome to dig through the data.
I've had a quick look through the proxy code, and it's not the best proxy I've written

In fact the GET method is hardcoded in the socket query, even if the WDTV asks for HEAD the first time. It works because either way it gets its headers and can get the data it wants.
You can get extra information by adding this line in the proxy (on line 10 for instance):
- Code: Select all
_logInfo("Starting execution. \$_SERVER is:".serialize($_SERVER));
All the juicy parameters are passed by WDTV in the $_SERVER hash. Here you can see the request it tries to make, the URL and various parameters (including position inside the stream). Also, dumping the headers you send and receive to umsp-log can save you from doing packet captures.
The length of a stream is variable, and is imposed in the reply from shoutcast. I've had streams running for 11+ hours.
Setting the current song name is a great idea. I don't know how you can pass this parameter after playback has started, though... I remember DJArty tried to find out something similar a few weeks ago, but he was trying to override the xml that did the rendering (mounting on top of it), but he failed because DMAOSD would not refresh the image. It might be impossible without restarting the stream, sadly...