# Please help, i need additional info about Wowza server-side API

**URL:** <https://community.wowza.com/t/please-help-i-need-additional-info-about-wowza-server-side-api/46051>\
**Category:** Wowza Streaming Engine\
**Created:** [October 12, 2015, 4:12pm UTC](https://community.wowza.com/t/please-help-i-need-additional-info-about-wowza-server-side-api/46051 "2015-10-12T16:12:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Boguslavsky](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@Max\_Boguslavsky](https://community.wowza.com/u/Max_Boguslavsky)\
**Post date:** [October 12, 2015, 4:12pm UTC](https://community.wowza.com/t/please-help-i-need-additional-info-about-wowza-server-side-api/46051/1 "2015-10-12T16:12:16Z")

</div>

I can’t find how to stop stream created from server side through class Stream, like this:

```auto
stream.play("mp4:" + recordingName, 0, -1, true);

```

When i do:

```auto
IMediaStream stream = applicationInstance.getStreams().getStream(streamName);
stream.close();

```

But stream still play.

I found some subjects about Stream and IMediaStream, and all of them without answer.

I created a topic [How to stop stream created from server side](http://community.wowza.com/t/-/46048)

Please point me right way.

---

<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:** [October 12, 2015, 8:06am UTC](https://community.wowza.com/t/please-help-i-need-additional-info-about-wowza-server-side-api/46051/2 "2015-10-12T08:06:42Z")

</div>

Hello there. Try it like this:

```auto
Stream stream = (Stream)client.getAppInstance().getProperties().getProperty(streamName);
stream.close();

```

Also, you might like to take a look at this module:

[How to control Stream class streams dynamically (ModuleStreamControl)](https://www.wowza.com/docs/how-to-control-stream-class-streams-dynamically-modulestreamcontrol%28ModuleStreamControl%29)

Regards,

Salvadore

---

<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:** [October 13, 2015, 5:48am UTC](https://community.wowza.com/t/please-help-i-need-additional-info-about-wowza-server-side-api/46051/3 "2015-10-13T05:48:38Z")

</div>

Great! Thanks for the update and glad to hear you got this sorted.

Salvadore

---

<div class="post-metadata">

**Author:** ![Max\_Boguslavsky](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@Max\_Boguslavsky](https://community.wowza.com/u/Max_Boguslavsky)\
**Post date:** [October 12, 2015, 7:54pm UTC](https://community.wowza.com/t/please-help-i-need-additional-info-about-wowza-server-side-api/46051/4 "2015-10-12T19:54:47Z")

</div>

> Hello there. Try it like this:
> 
> ```auto
> Stream stream = (Stream)client.getAppInstance().getProperties().getProperty(streamName);
> stream.close();
> 
> ```

Yes, i try this. Return error on this line:

```auto
stream.close();

```

```auto
ERROR	500	-	HTTPRequestAdapter.service : java.lang.NullPointerException|at ru.pixorama.HTTPTranslation.onHTTPRequest(HTTPTranslation.java:178)|at com.wowza.wms.http.HTTPRequestAdapter.service(HTTPRequestAdapter.java:33)|at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:643)|at com.wowza.wms.server.ServerHandler.a(ServerHandler.java:375)|at com.wowza.wms.server.ServerHandler.messageReceived(ServerHandler.java:488)|	-	-	-	39.276	-	-	-	-	-	-	-	-	-	-	-	-	

```

---

<div class="post-metadata">

**Author:** ![Max\_Boguslavsky](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@Max\_Boguslavsky](https://community.wowza.com/u/Max_Boguslavsky)\
**Post date:** [October 13, 2015, 12:26am UTC](https://community.wowza.com/t/please-help-i-need-additional-info-about-wowza-server-side-api/46051/5 "2015-10-13T00:26:01Z")

</div>

Update:

Thanks, now working 🙂

Just need put reference on stream to applicationInstance properties on stream creation.

```auto
Stream stream = Stream.createInstance(applicationInstance, streamID);
applicationInstance.getProperties().put(streamID, stream);
stream.play("mp4:" + recordingName, 0, -1, true);

```

And get this reference from applicationInstance when yo need to stop stream:

```auto
Stream stream = (Stream) applicationInstance.getProperties().getProperty(streamID);
stream.close();

```
