Skip to content

[bug] VideoTrackRenderer blows out video in light mode on Samsung #776

Open
@phr4fh

Description

@phr4fh

Hello, I noticed that on some Android (Samsung) phones, the VideoTrackRenderer renders a video almost completely blown out white when the device is in light mode, but correct when in dark mode.

To Reproduce

The error happens:

  • so far we reproduced it on Samsung S20, Samsung A14 and Samsung A41
  • AND when device is in light mode - actually when VideoTrackRenderer is surrounded by a widget with bright color, for example a ColoredBox

The error does not happen:

  • on other devices (iPhones, Web, Windows, other Androids like Samsung S10, Huawei, Xiaomi)
  • when we surround VideoTrackRenderer with a black ColoredBox (any device)
// this works, but we dont always want black background
ColoredBox(
              color: Colors.black,
              child: VideoTrackRenderer(
                callContent.videoTrack!,
                mirrorMode: VideoViewMirrorMode.auto,
                fit: RTCVideoViewObjectFit.RTCVideoViewObjectFitContain,
              ))
light mode dark mode red for testing
Image Image Image
actually against a window, you only see something if there is harsh contrast in the video, otherwise it is completly white the red shows that the renderer does something with opacity

So my guess is that it has something to do with the renderer specifically on Samsung devices. Mayba alpha channel?

Expected behavior

VideoTrackRenderer should be indifferent to background color and theme mode.

Platform information

  • Flutter version: 3.27.3
  • Plugin version: 2.3.5
  • Flutter target OS: Android, especially Samsung
  • Flutter target OS version: observed it on Android 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions