my dog learned polymorphism*
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 Spring in Action this week in the Spring 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