You can set the host domain of the playlist dynamically via the HTTPStreamerApplicationContextCupertinoStreamer object. To do so, please see the following example:
public void onHTTPStreamerRequest(IHTTPStreamerSession httpSession, IHTTPStreamerRequestContext reqContext){ // obtain the context HTTPStreamerApplicationContextCupertinoStreamer context = (HTTPStreamerApplicationContextCupertinoStreamer)httpSession.getAppInstance().getHTTPStreamerApplicationContext("cupertinostreaming",false); // set host domain context.setPlaylistHostDomain(context); }
When you do the above, you’ll want to be sure you set the relative playlists property to false as follows (HTTPStreamer/Properties container in Application.xml for your given application):
<Property>
<Name>cupertinoRelativePlaylistPlaylists</Name>
<Value>false</Value>
<Type>Boolean</Type>
</Property>