Posted By:
d_m
Posted On:
Wednesday, February 27, 2002 08:12 PM
Hi, I am trying to use JMF in my project. When I start playing movie - player.start(), - it shows pink colored background for milliseconds. It happens also when I stop playing, deallocate and close my player. Here is the part of my code: public synchronized void controllerUpdate(ControllerEvent event) { if (event instanceof RealizeCompleteEvent) { if ((visualComponent = player.getVisualComponent())!=null) { visualComponent.setBackground(Color.black);//Here??? visualComponent.setLocation(100,200); Papa.showPanel.add(visualComponent); validate(); } } } I have tried - visualComponent.setBackground(Color.black), but w
More>>
Hi,
I am trying to use JMF in my project. When I start playing movie - player.start(), - it shows pink colored background for milliseconds. It happens also when I stop playing, deallocate and close my player.
Here is the part of my code:
public synchronized void controllerUpdate(ControllerEvent event) {
if (event instanceof RealizeCompleteEvent) {
if ((visualComponent = player.getVisualComponent())!=null) {
visualComponent.setBackground(Color.black);//Here???
visualComponent.setLocation(100,200);
Papa.showPanel.add(visualComponent);
validate();
}
}
}
I have tried - visualComponent.setBackground(Color.black), but when it plays my av-file it covers the whole picture with black color (or red, it doesn't matter).
Any suggestions?
Thanks for help.
DM.
<<Less