D
D
Denis Ilinykh2016-07-05 01:29:09
Java
Denis Ilinykh, 2016-07-05 01:29:09

How can I organize WEB RTC communication on JavaFX on Raspbery pi?

The problem is as follows. It is
necessary to organize two-way video communication via WEBRTC
On Raspberry pi 2, a JavaFX application starts in kiosk mode, people work with it and can open video chat at any time.
The problem is that Chromium, launched manually in kiosk mode, works, transmits and receives video, sound , Everything is fine

sudo -u pi /usr/bin/chromium-browser --noerrdialogs --kiosk https://meet.jit.si/habrahabr

And chrome launched from JavaFX
String cmd = "sudo -u pi /usr/bin/chromium-browser --noerrdialogs --kiosk "+current.getRtcUrl();
Runtime.getRuntime().exec(cmd);

Does everything the same except that it is not displayed on top of the JavaFX application
. Oracle's documentation ( https://wiki.openjdk.java.net/display/OpenJFX/Open... ) says
Note that the default configuration of JavaFX on the Raspberry Pi does not use X11. Instead JavaFX works directly with the display framebuffer and input devices. So you should not have the X11 desktop running when starting JavaFX.

It would be possible to use the built-in chromium in JavaFX, for example, this solution https://www.teamdev.com/jxbrowser But they do not support arm yet, and they do not say when they will.
So that ? it turns out you need to install additional X11 for correct operation, but WEBRTC already eats up all 4 processors by 100%.
Maybe someone knows other less gluttonous ways to organize two-way online video communication?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Armenian Radio, 2016-07-05
@gbg

run linphone and not engage in frank nonsense - drag heavy desktop software to a single-board

E
Eugene, 2016-07-05
@zolt85

The role of the JavaFX application in this whole scheme is not clear. To use WebRTC, you just need to implement a signaling server. Here it is written how to do it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question