Java Client To WebRTC - java

Is there a library or way to take WebRTC and put it into a java application. Meaning the client is entirely on the desktop, javafx. It then uses the networking technology of WebRTC to connect two applications. I could use the entire WebRTC server as usual to handle these two applications.
Just curious. Thanks.

Ofcourse its possible . you want a webrtc endpoint to connect to a RTP endpoint isnt it ? Here you need a VP8 to H264 media converter which takes live stream from webrtc source , puts it on a desktop application and vice versa . Use GStreamer java libraries .

Related

How to connect java with plc data

I have a new project about plc (siemens), but I dont know how they work.
What I have to do, is by given some data from the plc I have to handle the data and to display it on a simple GUI.
The PLC (I dont know if there are different types) that I have to use is a "proximity sensor" which only capture if something is infront of it, then it hasto send some data to my program in Java and then I have to display it on the GUI (Basically some red or green circles)
I dont have to handle the behavior of the PLC, I just have to do display a red or green circle by given the data from the PLC
Questions:
I thought of Java because I know that is a powerful language, but is it the best for what I have to do?
Second if Java is the best choice, are there any librarys for working with PLC?
Third... I started to read something about some languages like:
Functional Block Diagram (FBD)
What are they for?
"The PLC(...) that I have to use is a "proximity sensor" which only capture something in front of it."
Do you mean to state here that you are connecting a proximity sensor to a PLC, reading the data from the PLC and back to your UI program OR do you want to read the proximity sensor directly back to your UI program?
If it’s the latter connect your sensor to a microcontroller and then send the data serially to your computer.
If you are using a PLC you will need some interface card (i.e. digital or analogue). Connect your sensor to the applicable card. If you want to read an S7 PLC you will need a library - libnodave is a good one.
If you are using a library like libnodave you will need to use ones of its supported languages - it includes Java but you can also use others e.g. C. You could also use Snap7.
FBD is one of the IEC61131-3 programming languages - see:
http://www.automation.com/pdf_articles/IEC_Programming_Thayer_L.pdf
The PLC should have an RS232/485 interface. All communications happen via serial communications. Java does have the Java Communications API, But before you go down that path, What is the computer that would be interfacing with the PLC device - A low power ARM SBC or a x86 PC ? The downsides of using Java is the footprint related to the JDK. If it were me, I'd stick to C/ Rust or GoLang based on the constraints of the platform.
To communicate with a Siemens plc you could use a few different options based on the exact type of PLC that you use.
A few communication protocols supported by Siemens:
opc: the industry standard for communication between PLC and other devices
libary like Snap7 http://snap7.sourceforge.net/ which has lots of supported programming languages
for the programming language you can use Java but as alternative you could use C# or vb.net in cooperation with Visual Studio for creating a simple GUI.
If you need any further information please let me know.
i had similar problem and this is how i sorted it out:
Communication protocol that most PLCs are using are either modbus, bacnet, lonworks and milion others. In your case , i assume that Siemens uses modbus.
Firstly you neet the Rs485 to usb adapter (arround 20Eur on Amazon)
you have to read registers from modbus - please use easyModbus api
This approach works fine but it is not happening in the real time as the modbus communication could run in separate threads.
This depends on the application that you want to design, if the application is based on the web, it is better to use a easymodbus TCP that sends data through TCP connection, and if you want a desktop application, it is better to use Easy Modbus RTU that Using RS485, this library it's the best.
http://easymodbustcp.net/en/
I Recommended to use this library it's also for future (Smart Phone, Desktop and Web Application using Spring Boot MVC).

Video Conferencing API for Java

are there any Free video conferencing APIs for Java...? It's for a telemedicine project. I have to communicate from Java application(Patient's end) to a web client at the doctor's end.
jitsi is an open source XMPP client (among other things) thats written mostly in Java and supports video calls. i suggest you start by looking at their source code.
Try lti-civil library. It will do the work for capturing images from webcam. Rest is on you to process it and use. Here is the link http://sourceforge.net/projects/lti-civil/

Java based code that replicates Netstream and netconnection

Is there a java api that allows you to use Netstream and netconnection functions from adobe? I'm working on my android app and I am trying to add a video chat feature on the app. Since the rest of the app is already coded in java it doesn't seem like I can attach a swf file to one of the activities. So I'm looking for alternative solutions to to connect with a web based flash video chat website from the app.
There is the JUV RTMP tool which is Java API to access RTMP servers. It also support audio/video streaming but you will need to provide the codec code.
It is a paid product, but at least works fine. I could never find a good open source solution for this.

JAVA library for videoconferencing and how to use libjitsi?

In case of a project we need to create a communication in videoconferencing with two PC
under Linux.
We search a library in JAVA to do this.
We found libJitsi base on Jitsi software, witch transmit with XMPP /Jingle.
I don't arrive to run their example which consists of these two classes:
http://bluejimp.com/jitsi/libjitsi/javadoc/org/jitsi/examples/AVTransmit2.html
http://bluejimp.com/jitsi/libjitsi/javadoc/org/jitsi/examples/AVReceive2.html
There is few documentation and it seems a little fuzzy.
Someone knows this library?
then or knows an alternative for the videoconferencing in JAVA?
thank you.
I used Netbeans or Eclipse Java EE.
SDK 1.7
I have done a project of video conferencing in java using these 2 files-
AVTransmit2.java
AVReceive2.java
What I understand is that with these 2 file you can communicate with java jmf plugin.
AVTransmit2.java works as a data capturer from your own webcam and transmit the data to the peer's IP address.
AVReceive2.java works as a data receiver from your remote peer and play the data by java jmf plugin.
For more understanding and easy implementation you can have a look at this open source project http://matrixsust.blogspot.com/2013/07/video-conferencing-project-in-java.html

Live Stream video using Android with pure java

i am trying to do a live streaming app in android, my question is what is the difference between using http and rtsp is there any way to only java code to do this, i refer so many projects already done are using java with other language combination, is there any way to stream in efficient way using java only
RTSP means Real Time Streaming Protocol, is a protocol specifically designed for streaming purpose, with RTSP you can control absolute positioning within the media stream, recording and possibly device control etc
RTSP introduces a number of new methods and has a different
protocol identifier.
An RTSP server needs to maintain state by default in almost all
cases, as opposed to the stateless nature of HTTP.
Both an RTSP server and client can issue requests.
Data is carried out-of-band by a different protocol.
If you want to use video streaming you have to use RTSP
See this LINK for more details about the protocol RTSP
NB
To show the video content in Android you can use the VideoView
myVideoView = (VideoView) findViewById(R.id.myview);
myVideoView.setVideoPath("rtsp://SERVER_IP_ADDR:5544/");
myVideoView.setMediaController(new MediaController(this));
As described HERE
I would suggest you to go for RTMP (Real time messaging protocol) instead of RTSP, there are number of open source plugins available in the market, like the famous "flowplayer" which is capable of streaming the video as per the industrial standards using the RTMP protocol. It has rapidly developed its capability to stream videos on Apple devices with the existing Flowplayer source plugin. Hope this helps
Flowplaye : flowplayer website
We are currently using the Akamai streaming capability coupled with flowplayer plugin for a flawless streaming experience.

Categories

Resources