-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Description
Description
Bug Description
When using the 100ms React Native SDK in an app that is locked to landscape orientation, the iOS camera captures video in portrait orientation instead of matching the app's landscape orientation. This causes video misalignment for both the local peer preview and for all remote participants (including web clients).
Android works correctly - this issue is iOS-specific.
Actual Behavior
- iOS camera captures video in portrait orientation (rotated 90°)
- Local peer preview shows incorrectly oriented video
- Remote peers receive portrait-oriented video stream
- Video tiles are misaligned across all platforms
- Web host sees iOS participants' video rotated/misaligned
100ms React Native Version
1.12.0
React Native Version
0.78.3
Steps to reproduce
-
Create a new React Native app (or use existing)
-
Install
@100mslive/react-native-hms -
Lock the app to landscape-only orientation:
Info.plist:
UISupportedInterfaceOrientations
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight
- Initialize HMSSDK and join a room:
const hmsInstance = await HMSSDK.build();
await hmsInstance.join(config);- Enable camera on iOS device
- Observe local preview - video is in portrait orientation
- Join same room from web browser or another device
- Observe that iOS participant's video appears rotated/misaligned
Expected results
- When the app is locked to landscape orientation, the iOS camera should capture video in landscape orientation
- The local peer preview should display video in correct landscape aspect ratio
- Remote peers (iOS, Android, and Web) should receive video in landscape orientation
- Video tiles should align correctly without any rotation or aspect ratio mismatch
Code example, screenshot, or link to a repository
Code sample
Logs
Logs
<!-- Paste your logs here -->
Reactions are currently unavailable