Closed MallikarjunTirlapur closed 10 years ago
On which branch?
We're still looking into streaming video with libtango.so
In the file tango_api_jni.cpp
JNIEXPORT jboolean JNICALL Java_edu_uml_TangoAPI_init(JNIEnv env) { if (application != NULL) return true; LOGW("INITIALIZING!"); const char source = TANGO_DATA_SOURCE; application = ApplicationInitialize(source); if (application != NULL) { if (!CHECK_FAIL(DepthStartBuffering(application))) {
// THIS FAILS RELIABLY... WHY?!
CAPIErrorCodes err = VideoOverlayInitialize(overlay);
LOGI("Video overlay err status = %d",err);
if (!CHECK_FAIL(err))
{
if (!CHECK_FAIL(VIOInitialize(application, true, NULL)))
{
LOGI("INITIALIZED");
return (jboolean)true;
}
else
{
LOGE("Failed to initialize VIO");
return false;
}
}
else
LOGE("Failed to initialize VideoOverlay");
}
else
{
LOGE("Failed to start buffering");
return false;
}
}
else
LOGE("Failed to initialize application");
return (jboolean)false;
}
Correct. Is that preprocessor defined?
yes I defined it in the same file. an argument to the VideoOverlayInitialize function is not overlay, it is application according to the declaration of VideoOverlayInitialize function in videooverlay.h file. I am also able to build the code..
There is a "next" branch with ingoing work towards video streaming that will get past the error you're seeing. There are other issues with that branch related to video streaming, so master's capabilities don't include video.
Please let me have solution if you already have fixed it.