Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Local camera track rotation when connecting to the Room #632

Open
DominikNozka opened this issue Nov 5, 2024 · 6 comments
Open

[bug] Local camera track rotation when connecting to the Room #632

DominikNozka opened this issue Nov 5, 2024 · 6 comments

Comments

@DominikNozka
Copy link

When you connect to the room on iOS device with Flutter SDK camera is initially rotated by 90 degrees. After a couple of seconds it goes back to portrait mode automatically. In some cases camera does not go back to portrait mode.

Steps to reproduce the behavior:

Connect to the room like this with physical iOS device.

room = Room(
      roomOptions: RoomOptions(
        adaptiveStream: true,
        dynacast: true,
        e2eeOptions: e2eeOptions,
      ),
    );`

    final listener = _room.createListener();
    await _room.prepareConnection(url, token);
    await _room.connect(
      url,
      token,
    );

Possible solution
Local video track does not rotate when I use FastConnectOptions for Room object creation.

Device Info:

  • iPhone 15 pro

Library version:

  • livekit_client: ^2.3.0
  • flutter_webrtc: ^0.12.1+hotfix.1

Flutter version
Flutter (Channel stable, 3.24.3)

@1084493818
Copy link

I have same problem

@1084493818
Copy link

@DominikNozka Have you solved your problem?

@1084493818
Copy link

@DominikNozka I found this problem on iOS 18.1, what about you?

@lurongshuang
Copy link

I have same problem

@pitazzo
Copy link

pitazzo commented Dec 3, 2024

in our case, it does not happen on a deterministic manner, sometimes happens sometimes it doesn't or even local video track is squared

@cloudwebrtc
Copy link
Contributor

cloudwebrtc commented Dec 23, 2024

This seems to be related to PlatformView, please refer to this line https://github.com/livekit/client-sdk-flutter/blob/main/example/lib/widgets/participant.dart#L146
and set to VideoRenderMode.texture to solve the rendering issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants