# SMIL Playlist api

**URL:** <https://community.wowza.com/t/smil-playlist-api/94946>\
**Category:** Wowza Streaming Engine\
**Created:** [May 14, 2022, 9:58am UTC](https://community.wowza.com/t/smil-playlist-api/94946 "2022-05-14T09:58:01Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhuvanesh\_jay](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bhuvanesh\_jay](https://community.wowza.com/u/bhuvanesh_jay)\
**Post date:** [May 14, 2022, 9:58am UTC](https://community.wowza.com/t/smil-playlist-api/94946/1 "2022-05-14T09:58:01Z")

</div>

Hi team,  
There is an api for creating the smil file([https://www.wowza.com/docs/smil-files-query-examples](https://www.wowza.com/docs/smil-files-query-examples)). But I need to pass the playlist and stream name in the api. Please help out of this,

Thanks

---

<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 20, 2022, 8:53pm UTC](https://community.wowza.com/t/smil-playlist-api/94946/2 "2022-05-20T20:53:20Z")

</div>

Hello, stream names go in the “src” field

When you create a smil file for playback you use that when fetching the playlist like this:  
http://[_address_]:1935/myApplication/smil:myStream.smil/playlist.m3u8

---

<div class="post-metadata">

**Author:** ![bhuvanesh\_jay](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bhuvanesh\_jay](https://community.wowza.com/u/bhuvanesh_jay)\
**Post date:** [May 27, 2022, 2:33pm UTC](https://community.wowza.com/t/smil-playlist-api/94946/3 "2022-05-27T14:33:39Z")

</div>

Hi,  
I need an api for this scheduled playlist api

```
    <stream name="Stream1"></stream>
    <stream name="Stream2"></stream>

    <playlist name="pl1" playOnStream="Stream1" repeat="true" scheduled="2016-04-15 16:00:00">
        <video src="mp4:sample.mp4" start="5" length="5"/>
        <video src="mp4:sample.mp4" start="50" length="5"/>
        <video src="mp4:sample.mp4" start="150" length="5"/>
    </playlist>

    <playlist name="pl2" playOnStream="Stream1" repeat="true" scheduled="2016-04-15 16:30:00">
        <video src="mp4:sample.mp4" start="0" length="-1"/>
    </playlist>

    <playlist name="pl3" playOnStream="Stream2" repeat="true" scheduled="2016-04-15 16:00:00">
        <video src="mp4:sample.mp4" start="30" length="5"/>
    </playlist>

</body>

```

Please do needful. TIA

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [June 2, 2022, 1:48am UTC](https://community.wowza.com/t/smil-playlist-api/94946/4 "2022-06-02T01:48:12Z")

</div>

Check out the module [documentation](https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher) and source. It will be useful.

---

<div class="post-metadata">

**Author:** ![bhuvanesh\_jay](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bhuvanesh\_jay](https://community.wowza.com/u/bhuvanesh_jay)\
**Post date:** [June 2, 2022, 2:01am UTC](https://community.wowza.com/t/smil-playlist-api/94946/5 "2022-06-02T02:01:35Z")

</div>

It is not an api documentation. I need an api service for creating smil playlist with the above mentioned specified format

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [June 2, 2022, 2:53am UTC](https://community.wowza.com/t/smil-playlist-api/94946/6 "2022-06-02T02:53:49Z")

</div>

I think you need to be more precise here. The document will help you build/form/discover the service.

---

<div class="post-metadata">

**Author:** ![bhuvanesh\_jay](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bhuvanesh\_jay](https://community.wowza.com/u/bhuvanesh_jay)\
**Post date:** [June 2, 2022, 5:16am UTC](https://community.wowza.com/t/smil-playlist-api/94946/7 "2022-06-02T05:16:32Z")

</div>

OK, But i need to play the modified smil file without restarting the server. As per the documentation, it is not working

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [June 2, 2022, 4:27pm UTC](https://community.wowza.com/t/smil-playlist-api/94946/8 "2022-06-02T16:27:58Z")

</div>

> [@bhuvanesh\_jay](#):
>
> I need an api service for creating smil playlist with the above mentioned specified format

You also mentioned

i need to play the modified smil file without restarting the server. As per the documentation, it is not working

So it’s not very clear as to where exactly you are stuck.

---

<div class="post-metadata">

**Author:** ![bhuvanesh\_jay](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@bhuvanesh\_jay](https://community.wowza.com/u/bhuvanesh_jay)\
**Post date:** [June 3, 2022, 3:25pm UTC](https://community.wowza.com/t/smil-playlist-api/94946/9 "2022-06-03T15:25:30Z")

</div>

first i need an api for this format

```auto
 <stream name="Stream1"></stream>
    <stream name="Stream2"></stream>

    <playlist name="pl1" playOnStream="Stream1" repeat="true" scheduled="2016-04-15 16:00:00">
        <video src="mp4:sample.mp4" start="5" length="5"/>
        <video src="mp4:sample.mp4" start="50" length="5"/>
        <video src="mp4:sample.mp4" start="150" length="5"/>
    </playlist>

    <playlist name="pl2" playOnStream="Stream1" repeat="true" scheduled="2016-04-15 16:30:00">
        <video src="mp4:sample.mp4" start="0" length="-1"/>
    </playlist>

    <playlist name="pl3" playOnStream="Stream2" repeat="true" scheduled="2016-04-15 16:00:00">
        <video src="mp4:sample.mp4" start="30" length="5"/>
    </playlist>

</body>
Second, need to reload the schedule for the modified smil file

Please advise
```

---

<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:** [June 3, 2022, 6:36pm UTC](https://community.wowza.com/t/smil-playlist-api/94946/10 "2022-06-03T18:36:56Z")

</div>

Did you search reload schedule in the forums and Wowza docs? It’s been asked a few times before and we do have a doc on it. Just trying to save you time and frustration next time.

#### Reload a schedule

The following is an example request to reload the schedule.

curl [http://localhost:8086/schedules?appName=myApplication&action=reloadSchedule](http://localhost:8086/schedules?appName=myApplication&action=reloadSchedule)

Do keep in mind that when you reload the schedule when the schedule is already running, it will go back to the very beginning of the file.

I hope this doc helps. Most changes to Engine are only made when you restart the service, but you might be able to get around that with the curl command.

[https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher#loading-reloading-and-unloading-schedules11](https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher#loading-reloading-and-unloading-schedules11)

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [June 4, 2022, 8:15am UTC](https://community.wowza.com/t/smil-playlist-api/94946/11 "2022-06-04T08:15:59Z")

</div>

Also the playlist format is a smil file. As explained earlier there is a [rest api](https://www.wowza.com/docs/smil-files-query-examples) for creating smil files. For your exact playlist format you have to try it out yourself. There are [others](http://community.wowza.com/t/creating-smil-files-using-rest-api/52600) who have used the same api successfully.

The smil file is basically just a XML file. You can Veblen rest eit manually in a editor and put it on the server in the right location with right extension. Then load or reload the schedule via api calls,
