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] LK Example app on Android: Video box renderer quality is SIGNIFICANTLY poor in RTCVideoViewObjectFitCover mode #710

Open
kNoAPP opened this issue Feb 17, 2025 · 0 comments
Labels

Comments

@kNoAPP
Copy link
Contributor

kNoAPP commented Feb 17, 2025

Describe the bug
The renderer's quality on native Android is extremely low in RTCVideoViewObjectFitCover mode despite the underlying video stream containing a much higher resolution. In fact, the video stream originating from an Android participants renders at a higher quality on remote participant subscribers on Web or iOS, for example. So this is not an issue with the data resolution. This is purely an issue with the Android renderer, which is putting out pixelated garbage.

This bug DOES NOT impact Android web, which works and renders beautifully and is consistent with the high quality seen on iOS and Web.

Image
I tried to screen grab the Example app Android web to show it working, but was unable. The Android web example app does not even render the preview page, only a grey box. That's a separate issue I will report, and not crucial information for this ticket.

To Reproduce
Replace occurrences of RTCVideoViewObjectFitContain with RTCVideoViewObjectFitCover in the example app codebase. Then, run the app for native Android. Observe the issue while selecting your camera.

Expected behavior
The native Android video stream renderer should produce the same high quality render as Web/iOS/etc.

Platform information
Physical Device
Pixel 9 Pro XL
Android 15

  • Flutter version:
[✓] Flutter (Channel stable, 3.27.4, on macOS 15.3 24D60 darwin-arm64, locale
    en-US)
    • Flutter version 3.27.4 on channel stable at
      /Users/alden/development/flutter
    • Upstream repository https://github.com/flutter/flutter
    • Framework revision d8a9f9a52e (2 weeks ago), 2025-01-31 16:07:18 -0500
    • Engine revision 82bd5b7209
    • Dart version 3.6.2
    • DevTools version 2.40.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/alden/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at:
      /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.4+-12422083-b607.1)

[✓] VS Code (version 1.97.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.104.0

[✓] Connected device (4 available)
    • Alden’s iPad (mobile)           • 00008103-000949C90A88A01E • ios            • iOS 18.3 22D63
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 15.3 24D60 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 15.3 24D60 darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome 133.0.6943.98

[✓] Network resources
    • All expected network resources are available.

• No issues found!
  • Plugin version:
    main branch (v2.3.6)

  • Flutter target OS:
    Android, real device

  • Flutter target OS version:
    Android 15

  • Flutter console log:

@linear linear bot added the Flutter label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant