File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JavaFX and the fly likes Play a video and display an image simultaneously Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Play a video and display an image simultaneously" Watch "Play a video and display an image simultaneously" New topic
Author

Play a video and display an image simultaneously

I Markou
Greenhorn

Joined: Aug 26, 2013
Posts: 1
Hello everyone,

I am new to JavaFX and I would like to know if it is possible to simultaneously play a video and display an image above it in the same scene.
Particularly, I want the image to be displayed in a fixed position.

I have tried using a StackPane layout but I get an error in the following line:

because the mediaPlayer object cannot be taken as a parameter and a Node object is needed

I have also tried adding both the video and the image in the same scene as seen below with no success (the video is being played but the image is not displayed)


Is what I'm trying to do feasible? And if yes, what methods should I use?

Thank you in advance for any answer!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Play a video and display an image simultaneously
 
Similar Threads
JavaFX vs H.264 on Linux
Media player problem
Using a method to return different string depending on situation
HTML 5 Video problem in android webview
JMF from JAR