I'm working on Camera Apps using Android 13 API. However, when I tried to obtain the maxFrameWidth
and maxFrameHeight
of each supported video encoders such as MPEG4, H263 and so on, VideoEncoderCap is not able to call. I wonder is it deprecated in Android 13 ?
I set mintargetSdkVersion
and targetSdkVersion
to 30, seems not working too.
The reason why I want to use VideoEncoderCap because the maxFrameWidth
and maxFrameHeight
obtained through MediaCodecInfo (getSupportedHeights().getUpper())
is different compare to VideoEncoderCap.
Any advice are welcome.