Hi,
I use this JMFGrabber-Code http://www.jmonkeyengine.com/jmeforum/index.php?topic=2867.0 in my application and it works very good. Currently the video runs and is rendered simultaneously with the start of my program. Now I’ve changed the code, that the video rendering starts after I pressed the play button on my virtual mediaplayer. The problem is now that the video runs in the background (I can hear the sound) but it is not rendered to the screen of my virtual tv anymore. I can also stop the JMFGrabber with the stop button.
I don’t know what I have done wrong, because after hours of staring at the code I think it should render the grabbed images on the screen instead of leaving the screen blank.
Maybe someone of you can help me to solve my problem and explain me the function simpleRender() ??
Another problem is that I can only start and stop the video one time and not more…
Thanks in advance.
Here is my code:
//****************************************************************
public class LaborXML extends SimpleGame{
private Node scene;
private Node lab;
private Node media;
private Node tvscreen;
private Node labwindow;
private Node m_character;
private Node StickMan;
private Node Lamp;
private Node tempNode;
private Node Fan;
private Node Play;
private Node Stop;
private ChaseCamera chaser;
private Text text, crossHair;
private Quaternion rotQuat = new Quaternion();
private float angle = 0;
private Vector3f axis = new Vector3f(45.8166122f, -6.3757133f, -39.9054337f).normalizeLocal();
private Cylinder t;
private static final String DEFAULT_TRANSMITTER = "com.jpeterson.x10.module.CM11A";
Vector3f prevLoc = new Vector3f();
float oldX, oldY, oldZ;
private