# How to use WebRTC in Java Processing?

**URL:** <https://discourse.processing.org/t/how-to-use-webrtc-in-java-processing/16757>\
**Category:** Libraries\
**Created:** [December 31, 2019, 2:08pm UTC](https://discourse.processing.org/t/how-to-use-webrtc-in-java-processing/16757 "2019-12-31T14:08:25Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [December 31, 2019, 6:58pm UTC](https://discourse.processing.org/t/how-to-use-webrtc-in-java-processing/16757/6 "2019-12-31T18:58:31Z")

</div>

I came across this:

[https://shiffman.net/processing.org/udp/2010/11/13/streaming-video-with-udp-in-processing/](https://shiffman.net/processing.org/udp/2010/11/13/streaming-video-with-udp-in-processing/)

> <https://github.com/pscholl/processing/blob/master/libraries/udp/UDP.java>

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/ff9ad4d6732b86c69c0686cb586babb7b2c5ca94.png)

And this topic:

> [@Udp recreiving multiple ports](https://discourse.processing.org/t/udp-recreiving-multiple-ports/7516):
>
> I would like to extend the UDP object to allow for listening to multiple ports. Note the use of extends in the class definition. public class myUDP extends UDP{ String myIp; int myPort; String inMsg; boolean inMsgrdy; public myUDP( String ip, int port) { super(port); //super(this, ip, port) this not allowed this should be the UDP constructor super.setReceiveHandler("receivea"); //this does nothing myIp = ip; myPort = port; super.log…

🙂

---

_[View the full topic](https://discourse.processing.org/t/how-to-use-webrtc-in-java-processing/16757)._
