# How to stop stream created from server side

**URL:** https://community.wowza.com/t/how-to-stop-stream-created-from-server-side/46048
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [October 10, 2015, 3:59pm UTC](https://community.wowza.com/t/how-to-stop-stream-created-from-server-side/46048 "2015-10-10T15:59:44Z")
**Posts on this page:** 2
**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 10, 2015, 3:59pm UTC](https://community.wowza.com/t/how-to-stop-stream-created-from-server-side/46048/1 "2015-10-10T15:59:44Z")

</div>

Hi! I have HTTP provider that can start mp4 translation from content folder.

(pseudocode)

```auto
public void onHTTPRequest() {
switch(action)
{
case "play":
Stream stream = Stream.createInstance(vhost, "Cam", streamName);
stream.play("mp4:" + recordingName, 0, -1, true);
break;
case "stop":
IMediaStream stream = applicationInstance.getStreams().getStream(streamName);
stream.close();
break;
}
}

```

And stream cannot stop and stil playing. How to stop this stream properly?

Sorry for my english 🙂

---

<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:07am UTC](https://community.wowza.com/t/how-to-stop-stream-created-from-server-side/46048/2 "2015-10-12T08:07:25Z")

</div>

Hi there, please see my [reply here](http://community.wowza.com/t/-/46051)

Salvadore
