Skip to content

1.0.7

Choose a tag to compare

@WengYuehTing WengYuehTing released this 13 Oct 03:14
· 22 commits to main since this release

What's New

  • 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.