ITADN

Local video track freezes in landscape or loses aspect ratio (even is sample app)

#949Openbombruch 创建于 2026-03-13
bug
B
bombruchcommented
**Describe the bug** Local video track freezes in landscape **SDK Version** 2.12.1 faced in PROD 2.10.2 tried to check sample app as was lack of ideas what we could screw in our logic **iOS/macOS Version** iOS 26.3.1 **Xcode Version** The Xcode version which the issue occurs - Version 16.2 (16C5032a) Swift version - as in main branch for sample app commit 4482e33f0b601e679ad4b82bebfcdaf7b2ad908b **Steps to Reproduce** - take sample app - add parameters to connect to room and signing - add logic to add local track to collection view - add logic to start camera when connected to room - rotate device to landscape - camera stream freezes - rotate device to portrait - camera stream OK **Expected behavior** Local camera track continues to play in any orientation **Screenshots** https://github.com/user-attachments/assets/4c8e332b-f714-4a91-9339-e5572a31e95e Git state: <img width="1312" height="300" alt="Image" src="https://github.com/user-attachments/assets/846da55d-6108-4fa2-b656-72786e0b395b" /> A bit updated patch to git to see what sits in commit: [patch_local_track.txt](https://github.com/user-attachments/files/25970488/patch_local_track.txt) **Logs** Had to turn off LiveKit logs as `LiveKitSDK.setLogLevel(.debug)` refused to compile on min UIKit sample So this what is shown in Xcode - [logs_rotate.txt](https://github.com/user-attachments/files/25970251/logs_rotate.txt) UDAPTE 1: Attaching full logs for 2.12.1 - [logs_2_12_1.txt](https://github.com/user-attachments/files/25971195/logs_2_12_1.txt)
17 条评论