# streamPublisher

**URL:** <https://community.wowza.com/t/streampublisher/55099>\
**Category:** Wowza Streaming Engine\
**Created:** [May 4, 2020, 1:08pm UTC](https://community.wowza.com/t/streampublisher/55099 "2020-05-04T13:08:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prochid\_Tech](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Prochid\_Tech](https://community.wowza.com/u/Prochid_Tech)\
**Post date:** [May 4, 2020, 1:08pm UTC](https://community.wowza.com/t/streampublisher/55099/1 "2020-05-04T13:08:20Z")

</div>

Hi Alex,

In StreamPublisher the Server properties are set to:

streamPublisherVHost _defaultVHost_

streamPublisherApplication live/_definst_

I want to have multiple Applications with different content roots like

streamPublisherApplication live1/_definst_

But I get error as I cannot define a 2nd application.

Also in the smil script, can I have

Notice the folder: “mp4:content/sample.mp4” as I need to separate content container for each stream.

---

<div class="post-metadata">

**Author:** ![PWI](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/pwi/32/1300_2.png) [@PWI](https://community.wowza.com/u/PWI)\
**Post date:** [May 4, 2020, 4:20pm UTC](https://community.wowza.com/t/streampublisher/55099/2 "2020-05-04T16:20:02Z")

</div>

Hi ,

you can use subdirectory name in SMIL, yes.

But you can’t use the module to create streams under multiply Wowza applications (content directories).

---

<div class="post-metadata">

**Author:** ![Prochid\_Tech](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Prochid\_Tech](https://community.wowza.com/u/Prochid_Tech)\
**Post date:** [May 5, 2020, 1:48am UTC](https://community.wowza.com/t/streampublisher/55099/3 "2020-05-05T01:48:52Z")

</div>

Thanks you  
I was able to create multiple streams however I noticed something

I MUST Restart the Server before any changes can take effect rather than the Application.

.e.g any changes made to the \*.smil file does not apply with restart of Application.

Is there a better way, without breaking live streams from another Application?

---

<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 5, 2020, 1:55am UTC](https://community.wowza.com/t/streampublisher/55099/4 "2020-05-05T01:55:28Z")

</div>

```auto
curl -X PUT \
-H 'Accept:application/json; charset=utf-8' \
[http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/actions/restart](http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/actions/restart)

```

For more info on how to restart the application and other related tasks:

[https://www.wowza.com/docs/application-management-query-examples#restart](https://www.wowza.com/docs/application-management-query-examples#restart)

---

<div class="post-metadata">

**Author:** ![PWI](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/pwi/32/1300_2.png) [@PWI](https://community.wowza.com/u/PWI)\
**Post date:** [May 5, 2020, 11:38am UTC](https://community.wowza.com/t/streampublisher/55099/5 "2020-05-05T11:38:52Z")

</div>

If you will require to change playlist without server or Application restart you may post the question in [Hire A Consultant space](https://www.wowza.com/community/spaces/26/find-a-consultant.html)

---

<div class="post-metadata">

**Author:** ![Prochid\_Tech](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Prochid\_Tech](https://community.wowza.com/u/Prochid_Tech)\
**Post date:** [May 5, 2020, 5:19pm UTC](https://community.wowza.com/t/streampublisher/55099/6 "2020-05-05T17:19:12Z")

</div>

Hi while trying to use Swagger to run commands I get this errors

```auto
<?xml version="1.0" encoding="UTF-8" standalone="no"?><error><wowzaServer>4.8.0</wowzaServer><code>403</code><message>Your IP address (192.168.1.200) has been blocked</message></error>

```

#### but server.xml has:

none

127.0.0.1

Am running the REST API Doc from a Web server on the same network

[http://192.168.1.7/wowza/?baseUrl=http%3A%2F%2F192.168.1.20%3A8089%2Fapi-docs#!/applications](http://192.168.1.7/wowza/?baseUrl=http%3A%2F%2F192.168.1.20%3A8089%2Fapi-docs#!/applications)

---

<div class="post-metadata">

**Author:** ![Prochid\_Tech](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Prochid\_Tech](https://community.wowza.com/u/Prochid_Tech)\
**Post date:** [May 11, 2020, 8:53pm UTC](https://community.wowza.com/t/streampublisher/55099/7 "2020-05-11T20:53:12Z")

</div>

Hi,

I used the code and it returned:

{“success”:true,“message”:“Application ([testlive](http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/actions/restart)) shutdown”,“data”:null}  
But the Application did not restart but stopped working

I then used

```auto
curl -X PUT \
-H 'Accept:application/json; charset=utf-8' \
[http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/actions/start](http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/actions/restart)

```

It would not work, I had to restart from the restart through "Server|Server Setup|Restart

This shutdown all running services.

I tried using

curl --digest -u user:pass [http://localhost:8086/schedules?appName=](http://localhost:8086/schedules?appName=Hekima&action=reloadSchedule)[testlive](http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/actions/restart)&action=reloadSchedule

but the schedule did not refetch also.

Looks like StreamScheduling ONLY works with server restarts.
