TheWidlarzGroup / react-native-video

A <Video /> component for react-native
http://thewidlarzgroup.github.io/react-native-video/
MIT License
7.11k stars 2.87k forks source link

short videos not playing in ios from remote url #3400

Open AdnanAshraf-pro opened 8 months ago

AdnanAshraf-pro commented 8 months ago

Its working fine with videos of length greater than 5 sec but having issue while playing videos with length 2 or 3 seconds . Facing this issue on IOS device .Its working fine on android .

Platform

Environment info

Library version: 5.2.1 Device: Iphone 8 (ios 16.7.2)

Steps To Reproduce

1.Use this link to play video => https://av5.io/TZonWU_20231116_015134-1.mp4

  1. Its a 3 sec video and wont play on ios devices

Expected behaviour

1.Video shows loading and then blank screen

Reproducible sample code

<Video style={{width:200,height:200}} source={{ uri: 'https://av5.io/TZonWU_20231116_015134-1.mp4' }} />

Video sample

https://av5.io/TZonWU_20231116_015134-1.mp4

freeboub commented 8 months ago

I think this is a video format issue. When I use it in the sample, I get following error: ConverterFactory.cpp:53 unable to find converter that supports given formats It seems to be a correct H264 file, but fps is 28.814416 dixit vlc, this framerate looks strange to me... I tested only on emulator

AdnanAshraf-pro commented 8 months ago

but the videos of same format with duration longer than 5 sec are playing. am facing this issue of real ios device .

KrzysztofMoch commented 7 months ago

@AdnanAshraf-pro did you try to play it with 6.0.0-beta version ?

AdnanAshraf-pro commented 7 months ago

@KrzysztofMoch i tried with 6.0.0-beta-3 videos of 3 seconds are playing but videos of 1 second are not .. For example this video ... it continuously shows loading

joshbroton commented 5 months ago

I attempted to play a 2s video with 6.0.0-beta-5. It was unsuccessful, but a 4.6s video played just fine.

KrzysztofMoch commented 5 months ago

Did you try to set buffer config to make it less then duration of video ? (Not sure if it will help)

AdnanAshraf-gol commented 5 months ago

yes i have tried setting buffer config but still not luck

freeboub commented 3 months ago

Just tried with the sample on simulator, all provided videos are working with the sample ...

https://alive5cdn.s3.amazonaws.com/images/bandwidthattachments/-w11703615134964./ad68f031-8dde-448d-996d-ad3b380290c3/1/20231226_122517.mp4 or https://av5.io/TZonWU_20231116_015134-1.mp4

Can you clarify if you also have the issue on emulator or is it limited to real devices ? maybe some props can create the issue ... This ticket needs to be clarified

joshbroton commented 2 months ago

@freeboub I believe this issue should be reopened. The bug was limited to physical iOS devices in our testing.