<Video> component working sporadically

Please provide the following:

  1. SDK Version: 0.59.8
  2. Platforms(Android/iOS/web/all): all
  3. Also using expo-av for Video component

https://docs.expo.io/versions/latest/sdk/video/
I followed this reference and implemented but it seems to work sporadically on each instance, working for some and not for others.

<Video
  source={{ uri: vidUrl}}
  rate={1.0}
  volume={1.0}
  isMuted={false}
  resizeMode="cover"
  shouldPlay
  isLooping
  style={{ width: 300, height: 300 }}
/>

My vidUrl: https://firebasestorage.googleapis.com/v0/b/flavr-e356e.appspot.com/o/portableBlenderv2.mp4?alt=media&token=4b34517e-ba5a-49d7-9cde-aeef51b14a45

Tried changing the resize=‘cover’ to ‘contain’ but that doesn’t seem to fix it.

Does anyone know how to fix this error? Thx!

Hey @ymtibebu,

Can you elaborate on what working sporadically means exactly? The video isn’t loading? Its layout is incorrect?

Cheers,
Adam

Yes I can.

So I have 4 video components in a flatlist.

All 4 are remote url to firebase storage .mp4 files

The initial 2 work but the bottom 2 don’t work. I checked the url for all 4 and they’re working fine.

I couldn’t think of what could possibly be causing this.

This may be due to a FlatList issue with rendering or loading. Again though, it’s best to thoroughly explain what you mean by “don’t work”. I would try just creating 4 small Video components and see if all 4 work as expected.

Okay, will try that out. Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.