It is not needed, we can just try to get the key and ignore error. NdkMediaFormat doesn't have that method.
This will facilitate adding another implementation based on NdkMediaCodec instead of JNI.