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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video with white background appears with black background on some Androids #3861

Closed
amaury1093 opened this issue Mar 27, 2019 · 3 comments
Closed

Comments

@amaury1093
Copy link
Contributor

amaury1093 commented Mar 27, 2019

馃悰 Bug Report

I have a video, which basically is a white background, with some smoke on the bottom right side. On some Android devices, it appears with a black background:

ezgif com-video-to-gif

Environment

[15:25:06] Generating diagnostics report...
[15:25:06] You can join our slack here: https://slack.expo.io/.

  Expo CLI 2.3.6 environment info:
    System:
      OS: macOS 10.14.3
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 11.1.0 - /usr/local/bin/node
      Yarn: 1.15.2 - ~/.yarn/bin/yarn
      npm: 6.5.0 - /usr/local/bin/npm
    IDEs:
      Xcode: 10.2/10E125 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^32.0.0 => 32.0.6 
      react: 16.5.0 => 16.5.0 
      react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1 
      react-navigation: ^3.0.9 => 3.3.2 
    npmGlobalPackages:
      expo-cli: 2.3.6

  Diagnostics report:
    https://exp-xde-diagnostics.s3.amazonaws.com/amaurymartiny-8ab57533-1e6b-447d-b243-29cb4c2f7164.tar.gz

This bug has only been reproduced on some Android devices, including:

  • Google Pixel 2 XL, Android 9

Steps to Reproduce

The steps to reproduce are pretty hard.

The complete source code is https://github.com/amaurymartiny/shoot-i-smoke/tree/am-white-video (am-white-video branch, the video is in this folder), and clearly has a white background.

I initially had a transparent background video, and thought that the black background was caused by transparency. But now, as you can see, the video itself has a white background, and the bug is still here.

Expected Behavior

White background.

Actual Behavior

Black background.

Reproducible Demo

See this file:

import React, { Component } from 'react';
import { Dimensions, StyleSheet } from 'react-native';
import { inject, observer } from 'mobx-react';
import { Video } from 'expo';

import smokeVideo from '../../../../assets/video/smoke_bg_720.mp4'; // This video has a white background!

@inject('stores')
@observer
export class SmokeVideo extends Component {
  /* snip */
  render () {
    return (
      <Video
        isLooping
        resizeMode='cover'
        shouldPlay
        source={smokeVideo}
        style={[styles.video, this.getVideoStyle()]}
      />
    );
  }
}
@amaury1093
Copy link
Contributor Author

@github-actions
Copy link
Contributor

This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.

@github-actions github-actions bot added the stale label Jan 18, 2022
@github-actions
Copy link
Contributor

This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.

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

No branches or pull requests

6 participants