convert player
JMF Player..
how to convert the player from a 'background player' to a 'component player'.
example
class myClass extends HContainer {
....
public void controllerUpdate(ControllerEvent event) {
if (event instanceof RealizeCompleteEvent) {
Component comp;
if ((comp = player.getVisualComponent()) != null) {
this.add(comp);
}
}
....
}
I wanted to show in the video in container! how ?
[485 byte] By [
win32a] at [2007-11-26 18:19:14]

# 1
What you've got looks right but is incomplete.
MHP says "If getVisualComponent returns non-null, video shall continue running in the background until the first call to the paint method of the component returned by getVisualComponent."
The spec for java.awt.Container.add says "Note: If a component has been added to a container that has been displayed, validate must be called on that container to display the new component. If multiple components are being added, you can improve efficiency by calling validate only once, after all the components have been added."
Beware that component based players are optional and most implementations don't support them.