JComponentPack v3.6 adds new JMediaPlayer component, the JMediaPlayer control is a MPlayer front end, support full screen, can be embedded into the Swing panel, can play almost all popular audio and video formats, relative to other players, resources occupy very small, do not need any system decoder can play a variety of media format.
JMediaPlayerBean bean = new JMediaPlayerBean();
// setup the MPlayer path
String mplayerPath = "D:\\tools\\mplayer.exe";
// setup the MPlayer params
String mplayerParams = "-vo direct3d -lavdopts threads=2";
JMediaPlayer can not only play a local file, and can play YouTube video by url, you can also play with RTSP (real time streaming protocol) stream media server video, input the url on location dialog：
The use of JMediaPlayer controls in your application, should first set the MPlayer program execution path through the code, if not set, the program will open dialog box prompts choosing mplayer.exe after select the video file or url, JMediaPlayerBean contains the completed menubar, you can call API to hide it.