@Override
    public void write(JmeExporter ex) throws IOException {
        OutputCapsule oc = ex.getCapsule(this);
        oc.write(playState, "playState", PlayState.Stopped);
        oc.write(speed, "speed", 1);
        oc.write(initialDuration, "initalDuration", 10);
        oc.write(loopMode, "loopMode", LoopMode.DontLoop);
    }
Used for serialization only.
@param ex exporter
@throws IOException from the exporter
jme3-core/src/main/java/com/jme3/cinematic/events/AbstractCinematicEvent.java