Log in or register to post comments

FrameMarker ID

July 7, 2011 - 11:55am #1

Hi!

I use the FrameMarker-Id in Java to play sounds when a special Marker is detected. When i start my app there is always a ID saved before a marker was found. So if i had never a marker in my stream, a sound is played when i touch.

for(int tIdx = 0; tIdx < state.getNumActiveTrackables(); tIdx++){
...
...
 int a = marker->getMarkerId();

        jclass javaClass = env->GetObjectClass(obj);
        jmethodID method = env->GetMethodID(javaClass, "reportID", "(I)V");
        env->CallObjectMethod(obj, method, a);
...
...}

Anybody knows why there is always a marker ID saved before a marker was in the stream?

Stephan

Log in or register to post comments