react-native-video: App Crashed

Bug

Platform

Which player are you experiencing the problem on:

  • iOS
  • Android

Environment info

Library version: 5.2.1 OR 6.0.0-alpha.9

Error Message

I also get the same error when I set a local video or a uri as a source. In the ios 17 version, the app is crashing. the error message is as follows.This problem did not occur on lower versions

Message: Main thread blocked by synchronous property query on not-yet-loaded property (NaturalSize) for HTTP(S) asset. This could have been a problem if this asset were being read from a slow network. Screenshot 2023-11-25 at 22 57 29

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16

Most upvoted comments

I solved the problem! The image specified in the ‘poster’ attribute was sometimes loading slowly, leading to an error. I resolved this by hosting the poster image on a CDN. Additionally, instead of using the ‘onLoad’ event, I replaced it with the ‘onReadyForDisplay’ event (which is executed when the poster image disappears).

same error app crashing in my case as well