Avatar

Correct answer by
Level 10

To access the StreamManager, use your connectsession instance. i.e. connectSession.streamManager.

And you can use something like connectSession.streamManager.aspectRatio = StreamManager.AR_PORTRAIT.

For some reason, I don’t see the aspectRatio API being exposed in docs. But I will expose the API for aspectRatio as well do something regarding custom aspectRatio in coming release.

And yes, what you are doing is right, you can manually do vC.height and vC.width in layoutCameraStreams() to set any height/width you want.

Hope this helps

Thanks

Regards

Hironmay Basu

View solution in original post