views:

55

answers:

0

Hi there

I was wondering about how to get the control panel components (start, stop, etc) from the Java media player with JMF.

I have:

Player mediaPlayer = Manager.createRealizedPLayer( mediaURL);    
Component video = mediaPlayer.getVisualComponent();
Component controls = mediaPlayer.getControlPanelComponent();

Then ... mediaPlayer.start(); to automatically start the video upon window load.

The problem I'm having now is to figure out if the video is currently playing or stopped, and if I can use other component (say, button) to be the control panel.

Please advise, and thanks in advance...