You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added optional local camera rotation for Agora sessions. Preview and published video share the corrected frames.
X-Lab keeps camera rotation disabled by default.
Simplified the README to focus on getting started.
API Changes
createLocalCameraStream() accepts an optional rotation value of 0, 90, 180, or 270 degrees clockwise. The default is 0, preserving the existing capture path.
videoFormat describes the target dimensions after rotation. For portrait output, keep width: 1024 and height: 1920 when setting rotation: 90.
Exported the CameraRotation type. No breaking API changes.
Limitations
Nonzero rotation currently requires Agora; other RTC providers reject it explicitly.
Rotation uses local Canvas processing and may add rendering overhead. Browser/device performance still requires live-session validation.
Do not apply an additional CSS rotation to the corrected preview. Mirroring remains independent of rotation.