itsnubix / react-native-video-controls

A React Native video component with controls
MIT License
639 stars 527 forks source link

Player invisible #230

Closed 3DJakob closed 3 years ago

3DJakob commented 3 years ago

I'm trying to use this module. I'm using it like the snippet below:

<VideoPlayer
        style={{ width: 200, height: 100 }}
        source={{ uri: CDNLink }}
/>

However, I can hear the video playing but the player is not visible. I tried to add a height and width with style but still nothing. Do you know why this might be? Also when using hooks how do I pass the navigator prop?

3DJakob commented 3 years ago

A managed to solve this issue! I hade the component in a without any styling. When I replaced this with an empty <> wrapper that solved my issue. Really strange though.

alexDevBR commented 1 year ago

I had this issue when the player was inside an empty <View>. Removing the View solved it.