# Mediacache and SMIL

**URL:** <https://community.wowza.com/t/mediacache-and-smil/35524>\
**Category:** Wowza Streaming Engine\
**Created:** [September 9, 2011, 12:01pm UTC](https://community.wowza.com/t/mediacache-and-smil/35524 "2011-09-09T12:01:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keith\_lai](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@keith\_lai](https://community.wowza.com/u/keith_lai)\
**Post date:** [September 9, 2011, 12:01pm UTC](https://community.wowza.com/t/mediacache-and-smil/35524/1 "2011-09-09T12:01:15Z")

</div>

We would like to setup a secure vod project for deskiop and android device.

1. setup RTMPE only connection, hotlink denial / secure token by using MediaSecurity

2. setup media cache as our cache server.

3. adaptive bitrate by using smil.

We have setup the point 1 and 2. it is very good for us. however, now we need a challenge that

we would like to deploy our VOD file with smil , how can we do it with mediacache?

Mainly, I don’t understand how to setup the relationship in the smil file.

rtmpe://mydomain.com/mediacache/contentserveralias/mp4:video\_440k.mp4

rtmpe://mydomain.com/mediacache/contentserveralias/mp4:video\_840k.mp4

rtmpe://mydomain.com/mediacache/contentserveralias/mp4:video\_1500k.mp4

how can I build a smil file which working with the mediacache in this situation?

---

<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:** [September 9, 2011, 9:03am UTC](https://community.wowza.com/t/mediacache-and-smil/35524/2 "2011-09-09T09:03:10Z")

</div>

Put the smil file alongside the content, in the same folder of the content server. Then you will reference the videos exactly the same as described in the vod tutorial

[https://www.wowza.com/docs/how-to-set-up-video-on-demand-streaming](https://www.wowza.com/docs/how-to-set-up-video-on-demand-streaming)

Then you wlll play the smil from the content server:

```auto
rtmpe://mydomain.com/mediacache/contentserveralias/smil:videos.smil

```

Richard
