TheWidlarzGroup / react-native-video

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

onBuffer & onLoadStart not working properly #3744

Closed Meet-Kapadiya closed 4 months ago

Meet-Kapadiya commented 4 months ago

Version

react-native-video: 6.0.0-rc.0

What platforms are you having the problem on?

iOS

What happened?

In android everything working fine, But in IOS onBuffer not working & onLoadStart fired with onLoad

KrzysztofMoch commented 4 months ago

Hmm when I am testing it in example it's working ... CleanShot 2024-05-08 at 12 27 08

Meet-Kapadiya commented 4 months ago

I am using IOS 17

freeboub commented 4 months ago

Hmm when I am testing it in example it's working ... CleanShot 2024-05-08 at 12 27 08

there are too much onBuffer events on ios :D

freeboub commented 4 months ago

@Meet-Kapadiya please provide detailed informations on how to reproduce the issue. We cannot provide support with so few informations ...

Meet-Kapadiya commented 4 months ago

https://github.com/TheWidlarzGroup/react-native-video/assets/83551362/7ae184ad-8e2e-49d6-98cd-00266a3f3ee0

https://github.com/TheWidlarzGroup/react-native-video/assets/83551362/a14fc9c6-2405-4a62-a135-94243239050f

freeboub commented 4 months ago

@Meet-Kapadiya Is it the multiple onBuffer calls which gives you issues ? I confirm this is an issue, but with low severity.

I don't fully understand the issue here ...

Meet-Kapadiya commented 4 months ago

In IOS, onBuffer not fired while seek forward or backward, I want to show loader while seeking. In android you can clearly see when i move forward or backward through buttons or slider, onBuffer event is fired.

Meet-Kapadiya commented 4 months ago

And also in video with loading start and end, i mention time, In IOS both fired at same time.

KrzysztofMoch commented 4 months ago

To Summary - on iOS

Am I right ?

Meet-Kapadiya commented 4 months ago

Yes

KrzysztofMoch commented 4 months ago

So it seems that onBuffer with seeking will work only for streams (eg. HLS playlists) - try to use HLS playlists as source instead of mp4 example source https://bitmovin-a.akamaihd.net/content/sintel/hls/playlist.m3u8

maksymhcode-care commented 3 months ago

So it seems that onBuffer with seeking will work only for streams (eg. HLS playlists) - try to use HLS playlists as source instead of mp4 example source https://bitmovin-a.akamaihd.net/content/sintel/hls/playlist.m3u8

Can you please tell me where can i find function that handle onBuffer on ios? trying to figure out why it keeps returning true even though the video is playing