I have jobject and its has jobjectArray inside ,I am using GetObjectField to get jobjectArray and then casting it , but its not working can anyone help ?
jfieldID representationArrayF = env->GetFieldID(className, "representationArray", "[Lcodec/video/initial/MMRepresentation");
jobject objectArr=(jobject)env->GetObjectField(jpresentationInfo, representationArrayF);
jobjectArray* objectArray=reinterpret_cast<jobjectArray*>(&objectArr);
jobject representation=(jobject) env->GetObjectArrayElement(*objectArray, i)