Play video with java -


Here's the problem: I have to play a video with Java (any type: Avi, Veve, etc.). I tried the jmf api a few days ago but it will not play any video. I have heard from this mess and support since then, so I have left it. I have also tried JFMPG, but it is very heavy, because I want to play a small presentation only before running a program. Is there any other way to do this, can I try another library?

JMF is super easy if you want to play simple video.

  increases the public class media player JFrame {public media player (set) (set layout (new border layout ()); // file that you want to play url mediaURL = // Maybe Media Media player with Media Player Media Player = Manager. Create Realized Player (Media URL); // Get component for video and playback control component video = media player.GetViewUlcollegePint (); Component Control = Media Player .getControlPanelComponent (); Adding (Video, BorderLayout.CENTER); Adding (Control, BorderLayout.SOUTH); }}   

Boom! You have the entire video player like 15 videos Just make sure that you install JmF, the harsh reality is that video is not a simple matter and there is bad support in Java.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

memcached - Django cache performance -

java : convert string value to int -