logo
On this page

How to set landscape orientation when publishing streams in mini programs?

2023-10-19
Products / Plugins:Video Call / Audio Call
Platform / Framework:Mini Program

When screen rotation is allowed, it can be divided into landscape and portrait:

When setting "pageOrientation": "auto" on mobile or "resizable": true on iPad, screen rotation is allowed. At this time, you can use the Page's onResize event or the wx.onWindowResize method to listen to this operation, and then determine whether to use landscape or portrait layout.

For details, please refer to WeChat Mini Program Official Documentation - Large Screen Adaptation Guide.

Previous

How to upgrade ZIM from AppSign authentication to Token authentication?

Next

Why is the camera indicator light still on after disabling your own video on the web page?