Skip to content

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

@bombruch

Description

@bombruch

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:
Image

A bit updated patch to git to see what sits in commit:
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

UDAPTE 1:
Attaching full logs for 2.12.1 - logs_2_12_1.txt

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions