# Java RTMP client?

**URL:** <https://community.wowza.com/t/java-rtmp-client/351>\
**Category:** Wowza Streaming Engine\
**Created:** [May 29, 2008, 10:01am UTC](https://community.wowza.com/t/java-rtmp-client/351 "2008-05-29T10:01:58Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [May 29, 2008, 10:01am UTC](https://community.wowza.com/t/java-rtmp-client/351/1 "2008-05-29T10:01:58Z")

</div>

Is it possible to write a (simple) **RTMP client in Java** , possibly using just Wowza Server apis?

Thanks,

Jussi

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [May 29, 2008, 3:30am UTC](https://community.wowza.com/t/java-rtmp-client/351/2 "2008-05-29T03:30:33Z")

</div>

No, the RTMP layer of our API is not exposed.

Charlie

---

<div class="post-metadata">

**Author:** ![Victor\_Manuel\_Larios](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@Victor\_Manuel\_Larios](https://community.wowza.com/u/Victor_Manuel_Larios)\
**Post date:** [June 5, 2008, 6:09pm UTC](https://community.wowza.com/t/java-rtmp-client/351/3 "2008-06-05T18:09:03Z")

</div>

How may I call a simple HelloWorld Wowza module from a Java Client instead of a Flex Client?

Please, tell me one tip.

Thanks.

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [May 29, 2008, 5:03am UTC](https://community.wowza.com/t/java-rtmp-client/351/4 "2008-05-29T05:03:59Z")

</div>

You should be able to use the Red5 client support to connect to Wowza Pro. It should just work.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [June 5, 2008, 12:57pm UTC](https://community.wowza.com/t/java-rtmp-client/351/5 "2008-06-05T12:57:05Z")

</div>

I am going to assume this is the same web service question you asked somewhere else.

Charlie

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [October 13, 2008, 4:09am UTC](https://community.wowza.com/t/java-rtmp-client/351/6 "2008-10-13T04:09:31Z")

</div>

Can you please describe in detail what you are trying to do.

Charlie

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [October 19, 2008, 4:58pm UTC](https://community.wowza.com/t/java-rtmp-client/351/7 "2008-10-19T16:58:15Z")

</div>

You need to create an application folder named mymodules here:

[wowza-install-dir]/applications/mymodules.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [June 2, 2011, 11:58am UTC](https://community.wowza.com/t/java-rtmp-client/351/8 "2011-06-02T11:58:26Z")

</div>

That is the server-side of the example, the source for a Wowza application module.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [June 2, 2011, 6:07pm UTC](https://community.wowza.com/t/java-rtmp-client/351/9 "2011-06-02T18:07:54Z")

</div>

As far as I know, you need a Flash client. If there are other options, I don’t know what or how.

Richard

---

<div class="post-metadata">

**Author:** ![rob\_roy](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@rob\_roy](https://community.wowza.com/u/rob_roy)\
**Post date:** [October 13, 2008, 11:48am UTC](https://community.wowza.com/t/java-rtmp-client/351/10 "2008-10-13T11:48:44Z")

</div>

@jussiniinikoski

hello,

did you get the red5 RTMP client working with wowza. i’m getting a “ERROR server comment - handleResult: can’t find resultObj: 0” Error message just by using a simple RTMP connect command.

regards

robroy

---

<div class="post-metadata">

**Author:** ![rob\_roy](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@rob\_roy](https://community.wowza.com/u/rob_roy)\
**Post date:** [October 13, 2008, 3:18pm UTC](https://community.wowza.com/t/java-rtmp-client/351/11 "2008-10-13T15:18:29Z")

</div>

i just want a proof that the red5 java RTMP client works with wowza. for that reason i try to make the simple serverside wowza application “MyFirstModule” running with the java RTMP client but in vain.

i even can’t connect to the wowza application, getting the message:

INFO session connect 127.0.0.1 -

ERROR server comment - HandleResult: can#t fine resultObject: 0

but i do not know if it is a problem of incompatibility or because of my poor java skills.

```auto
import org.red5.server.net.rtmp.RTMPClient;
...
MyCallback callback = new MyCallback();
RTMPClient client = new RTMPClient();
client.connect("localhost", 1935, "mymodules", callback);
//client.invoke("doSomething",callback);
...

```

robroy

---

<div class="post-metadata">

**Author:** ![rob\_roy](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@rob\_roy](https://community.wowza.com/u/rob_roy)\
**Post date:** [October 19, 2008, 4:39pm UTC](https://community.wowza.com/t/java-rtmp-client/351/12 "2008-10-19T16:39:54Z")

</div>

really no idea?

i get the following response from wowza:

```auto
{clientid=1070450058, level=error, description=Connection failed: Application folder ([install-location]/applications/) is missing., code=NetConnection.Connect.Rejected}

```

robroy

---

<div class="post-metadata">

**Author:** ![rob\_roy](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@rob\_roy](https://community.wowza.com/u/rob_roy)\
**Post date:** [October 19, 2008, 6:12pm UTC](https://community.wowza.com/t/java-rtmp-client/351/13 "2008-10-19T18:12:40Z")

</div>

this folder definitely exists otherwise i think wowza would claim:

Application folder ([install-location]/applications/ **mymodules** ) is missing

i guess it’s more a matter of the parameter transmission from the red5 RTMP client to wowza which is not recognitzed correctly. i read on the red5 email list that several people have the same prob and that they got the red5 RTMP client with FMS running…

robroy

---

<div class="post-metadata">

**Author:** ![Victor\_Manuel\_Larios](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@Victor\_Manuel\_Larios](https://community.wowza.com/u/Victor_Manuel_Larios)\
**Post date:** [June 5, 2008, 11:38pm UTC](https://community.wowza.com/t/java-rtmp-client/351/14 "2008-06-05T23:38:31Z")

</div>

Yes Charlie, It was the same question, but now I know how to do it with WebServices. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Jussi\_Niinikoski](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@Jussi\_Niinikoski](https://community.wowza.com/u/Jussi_Niinikoski)\
**Post date:** [May 29, 2008, 12:44pm UTC](https://community.wowza.com/t/java-rtmp-client/351/15 "2008-05-29T12:44:48Z")

</div>

Red5 has RMTP client support in Java - can I perhaps use their clientside connection methods or are your protocols incompatible? I’m reluctant to give up on using Wowza on my project…

Jussi

---

<div class="post-metadata">

**Author:** ![Jussi\_Niinikoski](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@Jussi\_Niinikoski](https://community.wowza.com/u/Jussi_Niinikoski)\
**Post date:** [May 29, 2008, 1:20pm UTC](https://community.wowza.com/t/java-rtmp-client/351/16 "2008-05-29T13:20:56Z")

</div>

Thanks Charlie, I’ll give it a try!

Jussi

---

<div class="post-metadata">

**Author:** ![Vijayaraghavan\_Amiri](https://avatars.discourse-cdn.com/v4/letter/v/aeb1de/32.png) [@Vijayaraghavan\_Amiri](https://community.wowza.com/u/Vijayaraghavan_Amiri)\
**Post date:** [December 9, 2008, 12:10am UTC](https://community.wowza.com/t/java-rtmp-client/351/17 "2008-12-09T00:10:28Z")

</div>

This blogpost should be useful. It describes a RTMP client which saves the streaming video to the disk.

[http://swik.net/Peter-Thomas/Incremental+Operations/How+to+record+RTMP+flash+video+streams+using+Red5/b4fey](http://swik.net/Peter-Thomas/Incremental+Operations/How+to+record+RTMP+flash+video+streams+using+Red5/b4fey)

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [May 31, 2011, 9:39pm UTC](https://community.wowza.com/t/java-rtmp-client/351/18 "2011-05-31T21:39:29Z")

</div>

Hello amirguterman85,

I feel that you should be able to get one of your Java rtmp clients working with Wowza. Maybe that’s something you should try troubleshooting.

The flourinefx website even mentions Wowza in its features: [http://www.fluorinefx.com/features.htm](http://www.fluorinefx.com/features.htm)

Another way to do it? Use Chrome and the HTML 5 filewriter API to write to a file. Then use Java to poll that file for changes, or better yet, make the file a named pipe and monitor it. Then write to your serial port from Java. But that seems weird. People usually don’t use web browsers to watch videos to write values to serial ports.

Why do you need to play the RTMP stream to get the shared object?

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [May 31, 2011, 9:53pm UTC](https://community.wowza.com/t/java-rtmp-client/351/19 "2011-05-31T21:53:13Z")

</div>

If you just want to interact with Wowza you can use HTTPProvider or a web service.

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [June 1, 2011, 12:13pm UTC](https://community.wowza.com/t/java-rtmp-client/351/20 "2011-06-01T12:13:54Z")

</div>

I don’t know exactly what you’re trying to do or why it needs to be real time. Web services, the Wowza HTTPprovider, and the Shared Object method are the usual ways to do client-server communication with Wowza. Web Services use HTTP, XML. But, if you need low latency you could just open a tcp socket from a Wowza module.

[Next page](https://community.wowza.com/t/java-rtmp-client/351.md?page=2)
