# How to use SecureToken within the SMIL files

**URL:** <https://community.wowza.com/t/how-to-use-securetoken-within-the-smil-files/51007>\
**Category:** Wowza Streaming Engine\
**Tags:** security\
**Created:** [March 24, 2018, 5:39pm UTC](https://community.wowza.com/t/how-to-use-securetoken-within-the-smil-files/51007 "2018-03-24T17:39:56Z")\
**Posts on this page:** 1\
**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, 5:39pm UTC](https://community.wowza.com/t/how-to-use-securetoken-within-the-smil-files/51007/1 "2018-03-24T17:39:56Z")

</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="Shakira">

  <body>

    <switch>

      <video height="160" src="shakira_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="shakira_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="shakira_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="shakira_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>
<br>

```
