I don't know why you think you need a lot of code to use JMF.
public class mediaPlayer extends JFrame
{
public mediaPlayer()
{
setLayout(new BorderLayout());
URL mediaURL =
Player mediaPlayer = Manager.createRealizedPlayer(mediaURL);
Component video = mediaPlayer.getVisualComponent();
Component controls = mediaPlayer.getControlPanelComponent();
add(video,BorderLayout.CENTER);
add(controls,BorderLayout.SOUTH);
}
}
A full media player, like 6 lines, could make it smaller. If all you need is something basic then id go to JMF.
As Zemzela said, Xuggle is also a good solution, but will require more work.
There are also Java VLC bindings. Press here
source
share