[SOLVED] Jme3 Beginner: Setting Cinematics Duration

From the wiki I understand that to set the animation timer in Cinematics

[java]cinematic = new Cinematic(rootNode, duration);[/java]

however with mine it’s always 10 seconds no matter what I put in duration. what am I missing?

my bad the code works as it should. I had another bug causing it not to work.