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

**URL:** https://community.wowza.com/t/changing-the-order-of-the-parameters-in-a-live-stream-m3u8-file/36418
**Category:** Wowza Streaming Engine
**Created:** [May 24, 2011, 10:08am UTC](https://community.wowza.com/t/changing-the-order-of-the-parameters-in-a-live-stream-m3u8-file/36418 "2011-05-24T10:08:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Kenneth\_Conner](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@Kenneth\_Conner](https://community.wowza.com/u/Kenneth_Conner)
#### Post date: [May 24, 2011, 10:08am UTC](https://community.wowza.com/t/changing-the-order-of-the-parameters-in-a-live-stream-m3u8-file/36418/1 "2011-05-24T10:08:14Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 24, 2011, 3:33pm UTC](https://community.wowza.com/t/changing-the-order-of-the-parameters-in-a-live-stream-m3u8-file/36418/2 "2011-05-24T15:33:30Z")

</div>

Ken,

Try IHTTPStreamerSession.setQueryStr(queryStr);

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

```

Richard

---

<div class="post-metadata">

### Author: ![Kenneth\_Conner](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@Kenneth\_Conner](https://community.wowza.com/u/Kenneth_Conner)
#### Post date: [May 29, 2011, 1:48pm UTC](https://community.wowza.com/t/changing-the-order-of-the-parameters-in-a-live-stream-m3u8-file/36418/3 "2011-05-29T13:48:29Z")

</div>

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
