I've got the following scenario:
At one LAN I have a vlc that offers its video on its built-in webserver on LAN 1. Then I have a client that connects to vlc and tunnels the stream to a component on another LAN. There I offer the stream using a standalone webserver with a servlet. The servlet simply copies the stream to the connected HTTP clients. Note that the video stream is relayed to LAN 2 regardless of whether or not there are active clients there.
The problem is that windows media player can't figure out the stream format when connecting to the custom webserver at the 2nd LAN. I suppose this is due to the fact that the new client is never directly connected to the vlc at LAN 1, so its asf muxer doesn't see a new connection and hence doesn't send the leading meta data about the stream. Vlc fails as well (which seems logical if indeed they require leading stream info that is normally sent by the asf muxer on connection creation).
I know I could use mpeg-ts and send the video stream in UDP packets that each carry meta data, but windows media player can't read UDP packets. Also, when I simply concatenate the UDP packets and send them to WMP over HTTP, it still doesn;t get it (vlc works fine then btw). So since mpeg-ts isn't an option (I need WMP support) and I don't want every client to connect to the source vlc (I need to relay the stream to other LANs instead), is there anything I can do?
Could I generate the "stream header" myself in my servlet and send it to each new client that connects?
regards,
Erik