How to resize viewport on android

Hi,

Is there a way to set the viewport to fit the resolution of video texture from device’s camera?

I try using ‘ResizeFrame’ to set the viewport, but I find this function only receive sizeX and sizeY parameters, the version that take position is deprecated, I want to set the position and size just like glViewport in OpenGL to keep my background texture not to be stretched on the mobile devices.

Thanks