How to switch between absolute and relative URLs in Apple HLS playlists

Wowza Media Server 3.0.0 and later and all versions of Wowza Streaming Engine software use relative Apple HTTP Live Streaming (HLS) playlist URLs by default. Wowza Media Server 2.0 used absolute URLs by default.

You can use the following properties to alter the behavior of your Wowza media server.

  1. Open [install-dir]/conf/[application]/Application.xml in a text editor and add the following properties to the <HTTPStreamer>/<Properties> container. Be sure to get the correct <Properties> container as there are several in Application.xml file.
    • To enable absolute URLs in the returned playlist.m3u8 URL , set cupertinoRelativePlaylistPlaylists to false.
      <Property>
      	<Name>cupertinoRelativePlaylistPlaylists</Name>
      	<Value>false</Value>
      	<Type>Boolean</Type>
      </Property>
    • To enable absolute URLs in the returned chunklist .m3u8 URL, set cupertinoRelativePlaylistItems to false.
      <Property>
      	<Name>cupertinoRelativePlaylistItems</Name>
      	<Value>false</Value>
      	<Type>Boolean</Type>
      </Property>
    • To secure the stream by using HTTPS, set the cupertinoPlaylistHostProtocol value to https://.
      <Property>
      	<Name>cupertinoPlaylistHostProtocol</Name>
      	<Value>https://</Value>
      	<Type>String</Type>
      </Property>
  2. Restart the Wowza media server so that your changes to take effect.

 

If you're having problems or want to discuss this article, post in our forum.