我有一个jobject对象,里面包含一个jobjectArray数组。我正在使用GetObjectField方法获取jobjectArray,并对其进行转换,但是它不起作用,有人可以帮忙吗?
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)