Reputation: 4261
Does the latest JavaFx version support streaming webcam video? Is it possible to get it through JMF in fx?
Upvotes: 3
Views: 3261
Reputation: 7890
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.
Upvotes: 0
Reputation: 11358
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.
Upvotes: 1