Does the latest JavaFx version support streaming webcam video? Is it possible to get it through JMF in fx?
Asked
Active
Viewed 3,193 times
2 Answers
1
It doesn't seem you can do it yet, see e.g. this recent post.
However, there seems to be several examples of using JMF to be able to at least capture an image. You might also try JNA.

csl
- 10,937
- 5
- 57
- 89
-
-
@Stackfan No need for smugness; "answered Oct 7 '09 at 14:48", as you probably can read. So if things have changed, hurray! – csl Jan 01 '11 at 22:11
-
Sorry, not yet hurray as you need to follow a hard way to get this working. JavaFx you can still bring other video/audio libraries. – Jan 01 '11 at 23:19
0
Almost 7 years later from when the question was asked and there still isn't 'native' JavaFX support for displaying a stream from a webcam (as far as I am aware).
However I managed to achieve it using the OpenCV library and displaying into an ImageView
. It's probably inefficient but OpenCV gives you the possibilities of processing the 'stream' too. Although all one might want to do is just display the stream, not modify it.

D-Dᴙum
- 7,689
- 8
- 58
- 97
-
yep, I asked it 7 years ago when we wanted to have a hybrid app where we wanted to have the rich GUI capabilities of FX combined with the speed and reliability of our code mostly done in C++ (such as opencv). This was before iPad was born and Android was much in it's infancy. Now there are efforts (https://developer.nvidia.com/codeworks-android) but nothing equivalent and as vertically integrated as iOS or Android where you can say it's robotech meets UX fluidly. – iceman May 04 '16 at 02:57