expo-av Video error playing video

I am trying to develop a react-native bare application and expo-av Video. I am trying to play multiple videos in FlatList. I tried running the application on different phones. On one phone the videos worked fine as expected. On another phone, it only displayed a blank screen and displayed the error

com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.qcom.video.decoder.avc, Format(2, null, null, video/avc, null, -1, null, [480, 270, -1.0], [-1, -1])

On another phone, it initially worked properly. But when I reloaded the app, the same error popped up. Even though I tried uninstalling the app and installing it again it wouldn’t work.

Note: All the three phones that I had used are android phones. Also, I have looked through the forum and I did not find any solid solution