# How to generate SMIL files on live-edge server.

**URL:** <https://community.wowza.com/t/how-to-generate-smil-files-on-live-edge-server/39661>\
**Category:** Wowza Streaming Engine\
**Created:** [April 6, 2014, 10:20pm UTC](https://community.wowza.com/t/how-to-generate-smil-files-on-live-edge-server/39661 "2014-04-06T22:20:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Shmayev](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@Sam\_Shmayev](https://community.wowza.com/u/Sam_Shmayev)\
**Post date:** [April 6, 2014, 10:20pm UTC](https://community.wowza.com/t/how-to-generate-smil-files-on-live-edge-server/39661/1 "2014-04-06T22:20:39Z")

</div>

Hi,

How to build SMIL files from transcoder on live edge?

I’ve read this tutorial but still I have questions.

[https://www.wowza.com/docs/how-to-create-and-play-smil-files-with-streams-created-by-wowza-transcoder](https://www.wowza.com/docs/how-to-create-and-play-smil-files-with-streams-created-by-wowza-transcoder)

I need dynamically build smil file per all streams.

Assume streams could be added/removed on the fly

Any help, appreciated

---

<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:** [April 6, 2014, 8:22pm UTC](https://community.wowza.com/t/how-to-generate-smil-files-on-live-edge-server/39661/2 "2014-04-06T20:22:37Z")

</div>

Sam,

Take a look at this article which shows how [create a MediaList dynamically](https://www.wowza.com/docs/how-to-use-java-api-calls-to-resolve-smil-file-requests)

Richard

---

<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:** [April 7, 2014, 3:29pm UTC](https://community.wowza.com/t/how-to-generate-smil-files-on-live-edge-server/39661/3 "2014-04-07T15:29:13Z")

</div>

The example is very basic, and really just shows example output, how the MediaList requests are intercepted and how to build a MediaList programmatically. You would have to add the resource connections and logic necessary to know when data has changed and what should be done. You might add a JDBC connection, for example, to query a database.

Richard

---

<div class="post-metadata">

**Author:** ![Sam\_Shmayev](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@Sam\_Shmayev](https://community.wowza.com/u/Sam_Shmayev)\
**Post date:** [April 7, 2014, 6:48am UTC](https://community.wowza.com/t/how-to-generate-smil-files-on-live-edge-server/39661/4 "2014-04-07T06:48:54Z")

</div>

Hi,

I read this example, but it also has some problems.

All data is hard coded and you need to **recompile** every time you change your transcoder template.

Assume we have transcoder template t1 with some data d1, we change our data to d2.

At this case you need to **recompile** your code.

So this solution is not **flexible**.

Thanks.
