File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Play a video and display an image simultaneously

 
I Markou
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic