wlanjie/trinity

Video Record Not Working on Some Android Device.

mvn-vinhhuynh-dn opened this issue · 0 comments

Issue: Can not start camera preview, displayed black screen

trinityJni.cc line 59

static jlong Android_JNI_createRecord(JNIEnv *env, jobject object) {
    auto *record = new CameraRecord(env);
    return reinterpret_cast<jlong>(record);
}

this function return an negative value, so can not create instance of Handler().
Could somebody meet it? And how to resolve this problem pls.