How to start streams at server startup (StartupStreams.xml)
Published on 10-01-2010 10:53 AM
Number of Views: 17336
Wowza Media Server includes a feature for configuring streams that are publish/started at server startup. This is the equivalent of starting a streaming using the MediaCaster Stream Manager. To configure a stream to start at server startup do the following:
- Edit [install-dir]/conf/StartupStreams.xml and add a <StartupStream> entry for each stream you wish to have started at server startup. Here are a few examples:
RTSP/RTP example (RTSP URL is rtsp://192.168.1.7:554/mycoolstream.sdp):
Code:
<StartupStream>
<Application>live/_definst_</Application>
<MediaCasterType>rtp</MediaCasterType>
<StreamName>rtsp://192.168.1.7:554/mycoolstream.sdp</StreamName>
</StartupStream>
Native RTP example (SDP file is myStream.sdp):
Code:
<StartupStream>
<Application>live/_definst_</Application>
<MediaCasterType>rtp</MediaCasterType>
<StreamName>myStream.sdp</StreamName>
</StartupStream>
SHOUTcast example (SHOUTcast URL is http://mycompany.com/station1):
Code:
<StartupStream>
<Application>live/_definst_</Application>
<MediaCasterType>shoutcast</MediaCasterType>
<StreamName>http://mycompany.com/station1</StreamName>
</StartupStream>
Using a .stream file to simplify MPEG-TS stream (myStream.stream is text file with contents udp://0.0.0.0:10000):
Code:
<StartupStream>
<Application>live/_definst_</Application>
<MediaCasterType>rtp</MediaCasterType>
<StreamName>myStream.stream</StreamName>
</StartupStream>
- Start Wowza Media Server
Wowza Media