How to go about playing video in a Java Application
I've looked around on Google, and I found that I can play video through the JavaFX API and the JMF API, but I have a few questions that I haven't been able to find answers to:
Which API should I use to play back either a .wmv or .avi file that will be read into the program by some sort of InputStream, maybe FileInputStream..
Is there a way to play a video with audio using the public API? The video would need to be played as a transition between levels in my game, so I'd really prefer a public API answer to this (if there is one) rather than use one of these APIs which may not work on other machines that only have the regular JRE.
Is it possible to do inside a JFrame? (I'd certainly hope so, because the game is inside a JFrame, so it would make it easier for people playing if everything was contained inside one window)
Thank you to anyone who is able to help me answer my questions.