# When using media cache and smil together

**URL:** <https://community.wowza.com/t/when-using-media-cache-and-smil-together/93344>\
**Category:** Wowza Streaming Engine\
**Created:** [May 26, 2021, 2:44pm UTC](https://community.wowza.com/t/when-using-media-cache-and-smil-together/93344 "2021-05-26T14:44:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![byungho\_lee](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@byungho\_lee](https://community.wowza.com/u/byungho_lee)\
**Post date:** [May 26, 2021, 2:44pm UTC](https://community.wowza.com/t/when-using-media-cache-and-smil-together/93344/1 "2021-05-26T14:44:03Z")

</div>

I would like to provide streaming using Wowza’s media cache and smil. I use a server used for storing mp4 files. I looked for it. I have vod and smil in the same space to use abs, but I can’t. I can’t call the server where the mp4 file is stored. I can’t call the smil file. So I need help. Is there a smil file in the wowza streaming server, and if there is a way to play it by specifying the src path of the video server?

---

<div class="post-metadata">

**Author:** ![video\_streaming](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@video\_streaming](https://community.wowza.com/u/video_streaming)\
**Post date:** [May 26, 2021, 4:22pm UTC](https://community.wowza.com/t/when-using-media-cache-and-smil-together/93344/2 "2021-05-26T16:22:44Z")

</div>

Yes you can do that and if you search “Mediacache SMIL” in the forums search bar above, you would see the accepted answer for this question:

> [@Mediacache and SMIL](http://community.wowza.com/t/mediacache-and-smil/54369):
>
> 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. 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" playOnStre…

But the very first important step is you have the src path set up properly in MediaCache to pull the mp4 file from the 3rd party server where you have it stored. Then you can connect the two using StreamPublisher as is explained in the forum post I linked above.

**Go to 1:20 in this wowza tutorial where we show how to configure MediaCache first then click follow the steps to connect MediaCache with Smil in StreamPublisher**

[![](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/1X/1006bd75cd196092e427fb6aca02280e5ac917fa.jpeg "Video On Demand With Wowza Streaming Engine") ](https://www.youtube.com/watch?v=yPuBojdsfQo)

---

<div class="post-metadata">

**Author:** ![byungho\_lee](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@byungho\_lee](https://community.wowza.com/u/byungho_lee)\
**Post date:** [May 27, 2021, 2:37am UTC](https://community.wowza.com/t/when-using-media-cache-and-smil-together/93344/3 "2021-05-27T02:37:15Z")

</div>

Sorry. I forgot to tell you one more thing. I would like to provide a link to support ABR using smil files and media cache. However, since only MP4 files can be called to our video server, smil files cannot be called separately. In this situation, I wonder if there is a way to use abr when there is smil in the wowza server and that smil has the address of the video server. I’m sorry that I didn’t say anything because it was uploaded using a translator.

I want to provide a vod streaming service, not a live streaming service.

---

<div class="post-metadata">

**Author:** ![Tim\_Dougherty](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/tim_dougherty/32/596_2.png) [@Tim\_Dougherty](https://community.wowza.com/u/Tim_Dougherty)\
**Post date:** [May 27, 2021, 7:14pm UTC](https://community.wowza.com/t/when-using-media-cache-and-smil-together/93344/4 "2021-05-27T19:14:57Z")

</div>

Using the StreamPublisher to generate ABR into a live application is possible. This [old] article is a decent demonstration: [https://www.wowza.com/docs/how-to-do-scheduled-adaptive-bitrate-streaming-using-stream-class-streams](https://www.wowza.com/docs/how-to-do-scheduled-adaptive-bitrate-streaming-using-stream-class-streams)

If you need to pull playlist assets from a Media Cache store, manually define the Media Cache source by editing your live Application.xml:

```
	<MediaCache>
		<MediaCacheSourceList>*</MediaCacheSourceList>
	</MediaCache>

```

Also, you will need to add these properties to Application.xml:

```
		<Properties>
			<Property>
				<Name>randomAccessReaderClass</Name>
				<Value>com.wowza.wms.mediacache.impl.MediaCacheRandomAccessReaderVODEdge</Value>
				<Type>String</Type>
			</Property>
			<Property>
				<Name>bufferSeekIO</Name>
				<Value>true</Value>
				<Type>Boolean</Type>
			</Property>
		</Properties>

```

Be sure to restart Wowza Streaming Engine to apply changes!

---

<div class="post-metadata">

**Author:** ![byungho\_lee](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@byungho\_lee](https://community.wowza.com/u/byungho_lee)\
**Post date:** [May 28, 2021, 7:39am UTC](https://community.wowza.com/t/when-using-media-cache-and-smil-together/93344/5 "2021-05-28T07:39:35Z")

</div>

Oh I didn’t understand. Thanks for the answer!

---

<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:** [May 30, 2021, 4:54pm UTC](https://community.wowza.com/t/when-using-media-cache-and-smil-together/93344/6 "2021-05-30T16:54:28Z")

</div>

Thanks @Tim_Dougherty!
