# Live streaming with dynamic video scheduling

**URL:** <https://community.wowza.com/t/live-streaming-with-dynamic-video-scheduling/39289>\
**Category:** Wowza Streaming Engine\
**Created:** [March 29, 2014, 6:38am UTC](https://community.wowza.com/t/live-streaming-with-dynamic-video-scheduling/39289 "2014-03-29T06:38:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sutharshan\_Balachand](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@Sutharshan\_Balachand](https://community.wowza.com/u/Sutharshan_Balachand)\
**Post date:** [March 29, 2014, 6:38am UTC](https://community.wowza.com/t/live-streaming-with-dynamic-video-scheduling/39289/1 "2014-03-29T06:38:16Z")

</div>

Hi,

I’m looking to develop an application which have an administration portal, where the user will be able to add the order of the videos that should play and it between they will add small video clips for advertising purposes. All the videos schedule list are added in the mysql database and I want to do a server side module with wowza to get the videos schedule order from the mysql database and play. I tried to develop the application and I was able to play the first video, but I don’t know how to get the rest of the videos and play back to back one after another in the order of the database.

I can’t use the smil file, because it needs to restart the application and the basic idea of this application is to provide the ability for the users to change the order of the videos at anytime they want via the dashboard on the admin panel. If you could assist me in someway to track the end of each video played and switch to the next video it will be grateful.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [March 30, 2014, 6:51am UTC](https://community.wowza.com/t/live-streaming-with-dynamic-video-scheduling/39289/2 "2014-03-30T06:51:17Z")

</div>

Hi there, take a look a these two articles:

[How to do basic server-side publishing with Stream class streams](https://www.wowza.com/docs/how-to-do-basic-server-side-publishing-with-stream-class-streams)

[How to do scheduled streaming with Wowza Streaming Engine (StreamPublisher)](https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher)

Salvadore

---

<div class="post-metadata">

**Author:** ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)\
**Post date:** [March 31, 2014, 9:13am UTC](https://community.wowza.com/t/live-streaming-with-dynamic-video-scheduling/39289/3 "2014-03-31T09:13:34Z")

</div>

Hi,

Also, for this type of workflow, you may want to look at invoking the IPublishingProvider API directly. It will give you more control over how the streams are inserted into the output stream.

[https://www.wowza.com/docs/how-to-use-ipublishingprovider-api-to-publish-server-side-live-streams](https://www.wowza.com/docs/how-to-use-ipublishingprovider-api-to-publish-server-side-live-streams)

FYI, The Stream class is a higher level interface to this API. At an even lower level is interacting with the Publisher class directly.

Roger.
