Use only H264 in Android surface mode

I am using the mediasoup client in rk3399 Android 10. Since the gpu of the device only supports H264 encoding and decoding, it is found during communication that if the surface mode is enabled when the Android side encodes and decodes, it will not be able to encode and decode normally. The browser and the browser can communicate normally, but the browser and Android cannot parse each other’s screen.

Also wondering if anybody else sees similar issues?
Thanks