# How to use SecureToken within the SMIL files

**URL:** <https://community.wowza.com/t/how-to-use-securetoken-within-the-smil-files/51005>\
**Category:** Wowza Streaming Engine\
**Tags:** security\
**Created:** [March 24, 2018, 4:03pm UTC](https://community.wowza.com/t/how-to-use-securetoken-within-the-smil-files/51005 "2018-03-24T16:03:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Antono](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andy\_Antono](https://community.wowza.com/u/Andy_Antono)\
**Post date:** [March 24, 2018, 4:03pm UTC](https://community.wowza.com/t/how-to-use-securetoken-within-the-smil-files/51005/1 "2018-03-24T16:03:13Z")

</div>

Hi,

Previously i was using SecureToken 2 for mp4 files, but now i start using SMIL files for ABR. However i am wondering how i shall construct the SMIL and include SecureToken as per the MP4 files.

This is an example of request URL:

```auto
sample.mp4/playlist.m3u8?myTokenPrefixstarttime=1395230400&myTokenPrefixendtime=1500000000&myTokenPrefixhash=TgJft5hsjKyC5Rem_EoUNP7xZvxbqVPhhd0GxIcA2oo=

```

and this is an example of a SMIL file:

```auto
<?xml version="1.0" encoding="UTF-8"?>

<smil title="Despacito">

  <body>

    <switch>

      <video height="160" src="despacito_160p.mp4" systemLanguage="eng" width="284" title="Low">

	<param name="videoBitrate" value="200000" valuetype="data"></param>

	<param name="audioBitrate" value="48000" valuetype="data"></param>

      </video>

      <video height="240" src="despacito_240p.mp4" systemLanguage="eng" width="360" title="Mid1">

	<param name="videoBitrate" value="350000" valuetype="data"></param>

	<param name="audioBitrate" value="48000" valuetype="data"></param>

      </video>

      <video height="360" src="despacito_360p.mp4" systemLanguage="eng" width="640" title="Mid2">

	<param name="videoBitrate" value="850000" valuetype="data"></param>

	<param name="audioBitrate" value="48000" valuetype="data"></param>

      </video>

      <video height="720" src="despacito_720p.mp4" systemLanguage="eng" width="1280" title="High">

	<param name="videoBitrate" value="1300000" valuetype="data"></param>

	<param name="audioBitrate" value="48000" valuetype="data"></param>

      </video>

    </switch>

  </body>

</smil>

```

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [March 24, 2018, 4:06pm UTC](https://community.wowza.com/t/how-to-use-securetoken-within-the-smil-files/51005/2 "2018-03-24T16:06:37Z")

</div>

Hi @Andy Antono

This forum is called “Hire a Consultant”, and meant for inquiries for paid support from authorized (external) consultants. If you’re looking for support from Wowza, you may post your question in [https://www.wowza.com/community/spaces/31/wowza-streaming-engine-support-forums.html](https://www.wowza.com/community/spaces/31/wowza-streaming-engine-support-forums.html), or join the Slack community ([https://www.wowza.com/slack](https://www.wowza.com/slack))

---

<div class="post-metadata">

**Author:** ![Andy\_Antono](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@Andy\_Antono](https://community.wowza.com/u/Andy_Antono)\
**Post date:** [March 24, 2018, 5:40pm UTC](https://community.wowza.com/t/how-to-use-securetoken-within-the-smil-files/51005/3 "2018-03-24T17:40:37Z")

</div>

Hi @Karel Boek,

Sorry i didn’t notice it. Can i delete the post?

---

<div class="post-metadata">

**Author:** ![Matt\_Davidson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_davidson/32/433_2.png) [@Matt\_Davidson](https://community.wowza.com/u/Matt_Davidson)\
**Post date:** [March 26, 2018, 6:09pm UTC](https://community.wowza.com/t/how-to-use-securetoken-within-the-smil-files/51005/4 "2018-03-26T18:09:32Z")

</div>

Moved the post to the Wowza Streaming Engine General Forum.
