# How to use ModuleStreamControl using JAVA player

**URL:** <https://community.wowza.com/t/how-to-use-modulestreamcontrol-using-java-player/51112>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [April 10, 2018, 3:26pm UTC](https://community.wowza.com/t/how-to-use-modulestreamcontrol-using-java-player/51112 "2018-04-10T15:26:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachin\_Gupta1](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@Sachin\_Gupta1](https://community.wowza.com/u/Sachin_Gupta1)\
**Post date:** [April 10, 2018, 3:26pm UTC](https://community.wowza.com/t/how-to-use-modulestreamcontrol-using-java-player/51112/1 "2018-04-10T15:26:33Z")

</div>

Hello I have followed following tutorial to create dynamic playlist on the fly:

[https://www.wowza.com/docs/how-to-control-stream-class-streams-dynamically-modulestreamcontrol](https://www.wowza.com/docs/how-to-control-stream-class-streams-dynamically-modulestreamcontrol)

But since it provides its support only for flash player, I was wondering is there a way to call these method from some other JAVA agent, that will call these methods to add or remove playlist item from existing stream.

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [April 13, 2018, 2:10am UTC](https://community.wowza.com/t/how-to-use-modulestreamcontrol-using-java-player/51112/2 "2018-04-13T02:10:05Z")

</div>

Hi Sachin,

This has been handled in a ticket already (279454), but for others with the same question, you can use the [JConsole](https://www.wowza.com/docs/how-to-use-jconsole-with-wowza-media-server) to call these methods. You can also wrap an [HTTPProvider](https://www.wowza.com/docs/how-to-create-an-http-provider) around these methods so that you can call them through an HTTP request. If you do prefer your own custom Java agent, you will need to add the javaagent path in conf/Tune.xml as a VMOption (it has to be the first one) similar to the following.

```auto
<VMOption>-javaagent:"\path\to\javaagent.jar"</VMOption>

```

Michelle
