# Mediacache and SMIL

**URL:** <https://community.wowza.com/t/mediacache-and-smil/54369>\
**Category:** Wowza Streaming Engine\
**Created:** [December 26, 2019, 4:05pm UTC](https://community.wowza.com/t/mediacache-and-smil/54369 "2019-12-26T16:05:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cao\_son](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@cao\_son](https://community.wowza.com/u/cao_son)\
**Post date:** [December 26, 2019, 4:05pm UTC](https://community.wowza.com/t/mediacache-and-smil/54369/1 "2019-12-26T16:05:35Z")

</div>

How can i live stream from mediacache.

I’m trying make youtube livestreaming from amazon S3.  
I read this **_article :_** [https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache](https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache), and do it step by step.

But now i don’t know how to smil file can connect with mediacache to livestream.

Pls help me!

Thanks.

```auto
1. This is my smil file
<?xml version="1.0" encoding="UTF-8"?> 
<smil title=""> 
<head></head> <body>
 <stream name="stream10"></stream> 
<playlist name="pl2" playOnStream="stream10" repeat="true" scheduled="2019-11-21 18:31:00"> 
<video length="-1" src="http://10.184.192.212:1935/mediacache/_definst_/mp4:amazons3/9.mp4" start="0">
</video> 
</playlist>
 </body> 
</smil><br>

```

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [December 26, 2019, 5:31pm UTC](https://community.wowza.com/t/mediacache-and-smil/54369/2 "2019-12-26T17:31:20Z")

</div>

Thank you for sharing what article you followed and some code @cao son, that is very helpful. The next step to take is to use StreamPublisher to access those streams with the smil file and MediaCache:

[https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher](https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher)

If you wish to use a smil file with Media Cache you should create a smil file in the same location as your VOD files and reference the files in the smil file as a relative link.

Then when you construct your playback URL you can use the Mediacache prefix and add the smil file to the end just as you would with any other smil file reference, e.g.

rtmp://[wowza-ip]/[app-name]/[mediacache-prefix]/smil:videos.smil

(You should enter a prefix such as “amazons3/”)

---

<div class="post-metadata">

**Author:** ![cao\_son](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@cao\_son](https://community.wowza.com/u/cao_son)\
**Post date:** [December 30, 2019, 8:48am UTC](https://community.wowza.com/t/mediacache-and-smil/54369/3 "2019-12-30T08:48:00Z")

</div>

Thank for replying me. I solved it.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [December 30, 2019, 8:27pm UTC](https://community.wowza.com/t/mediacache-and-smil/54369/4 "2019-12-30T20:27:28Z")

</div>

Excellent to hear! Thank you for letting me know.
