ReactVision / viro

ViroReact: The AR and VR library for React Native 📳💙💛🤍💚
MIT License
1.3k stars 150 forks source link

ViroVideo is not working In Android device #153

Open ibenettaleb opened 1 year ago

ibenettaleb commented 1 year ago

Requirements:

Please go through this checklist before opening a new issue (I Did)

Environment

My environment:

  1. Development OS: MacBook Pro
  2. Device OS & Version: Android OS version 12
  3. Version: ViroReact ^2.23.0 and React Native 0.69.0
  4. Device(s): Samsung A52

Description

The App Crashes when I Render the ViroVideo Component. Otherwise, it works in ios

Reproducible Demo

Code :

  import { ViroVideo } from '@viro-community/react-viro';
  const Video = () => {
    return (
      <ViroVideo
        source={require('../../../assets/video/video.mp4')}
        height={0.28575 }
        width={0.508}
        loop={true}
        position={[0, 0, 0]}
        rotation={[-90, 0, 0]}
        scale={[0.1, 0.1, 0]}
      />
    );
  };

Demo:

https://user-images.githubusercontent.com/28574987/180815566-5c297b12-f588-4ec1-aae5-33ce81a7e0cf.mp4

Thanks in advance for any help :)

randomtoni commented 1 year ago

hi @ibenettaleb, I'm having the same issue, I think is related to #212