Changing the order of the parameters in a live stream m3u8 file

Ok, hoping there is some solution here even though I understand it isnt a supported operation.

Using a CDN, were we are using their token system to solve a couple of use cases.

{WOWZAURL}\playlist.m3u8?SECURETOKEN

Yields a playlist that has and entry that is

playlist.m3u8?sessionid=1234

So we wrote a module to generate the toke again in wowza. However, the playlist reads

playlist.m3u8?sessionid=1234&SECURETOKEN

Is there anyway to reorder these. i.e. can I change the order of the parameters so that mine is first? When the call actually comes, the token is stripped off, so wowza will just see a call for playlist.m3u8?sessionid=1234. So that would work fine, its just changing the way it writes the URLs in the file. The alternative is to write a second file myself. Is there an event I can trap when Wowza adds an index file entry?

Kind Regards,

Ken

Ken,

Try IHTTPStreamerSession.setQueryStr(queryStr);

	public void onHTTPSessionCreate(IHTTPStreamerSession httpSession) {
		getLogger().info("onHTTPSessionCreate: " + httpSession.getSessionId());
		httpSession.setQueryStr("123");
	}

Richard

No Joy:

httpSession.setUserQueryStr() allows me to append additional parameters

httpSession.setQueryStr() doesnt seem to have any affect on the query string at all.

I just need your wowzasessionid=1957988161 parameter to be at the end, not the begining.

Any ideas