• How to do scheduled, adaptive bitrate streaming using Stream class streams

    For the example you can download the following versions of bigbuckbunny and put them in the Wowza media server content folder:


    Each item must be keyframe-aligned for switching to work. For encoding suggestions to achieve this, see How to encode video on demand content.

    Make sure the Stream Class Scheduler is set up:

    1. Get the latest Wowza Module Collection package.

    2. Add the ServerListener to /conf/Server.xml, then restart Wowza media server.
      <ServerListener>
      	<BaseClass>com.wowza.wms.collection.serverlistener.ServerListenerStreamPublisher</BaseClass>
      </ServerListener>
    3. Create the streamschedule.smil file in the /content folder:
      <smil>
          <head>
          </head>
          <body>
           	 <stream name="Stream1"></stream>
           	 <stream name="Stream2"></stream>
      	 <stream name="Stream3"></stream>
      
              <playlist name="pl1" playOnStream="Stream1" repeat="true" scheduled="2014-12-11 16:26:00">
                  <video src="mp4:bigbuckbunny_450.mp4" start="0" length="-1"/>
              </playlist>
      	<playlist name="pl2" playOnStream="Stream2" repeat="true" scheduled="2014-12-11 16:26:00">
                  <video src="mp4:bigbuckbunny_750.mp4" start="0" length="-1"/>
              </playlist>    
              <playlist name="pl3" playOnStream="Stream3" repeat="true" scheduled="2014-12-11 16:26:00">
                  <video src="mp4:bigbuckbunny_1100.mp4" start="0" length="-1"/>
              </playlist>
          </body>
      </smil>
    4. Create the switching SMIL file (switch.smil) in the content folder:
      <smil>
      	<head>
      	</head>
      	<body>
      		<switch>
      			<video src="Stream1" system-bitrate="450000"/>
      			<video src="Stream2" system-bitrate="750000"/>
      			<video src="Stream3" system-bitrate="1100000"/>
      		</switch>
      	</body>
      </smil>
    5. Restart Wowza media server to load the Scheduler.


    Playback in iOS:
    http://[wowza-ip-address]:1935/live/smil:switch.smil/playlist.m3u8
    Playback in Silverlight:
    http://[wowza-ip-address]:1935/live/smil:switch.smil/Manifest
    Playback Flash HTTP (San Jose) stream:
    http://[wowza-ip-address]:1935/live/smil:switch.smil/manifest.f4m