-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: IOS- keeps buffering #3675
Comments
Any way to reproduce? Are you able to reproduce with the sample included in the repo ? |
Hi, I'm working with Fairplay DRM.. I'm not quite sure how to send a reproducible example |
video with lesser duration plays fine but not with more duration(30 mins +). The player is stuck buffering |
the issue still persists in the latest version |
@freeboub the issue still exists for the DRM videos on ios... videos without DRM work fine. |
Not sure how we can help here ... |
@freeboub the network communication is fine and there are no xcode logs.. it's just the video buffers forever. Im currently testing with ios 14.8 |
@freeboub I tested on a newer device with the latest ios but the problem still exists... probably can we connect on discord and I will share the DRM content so that you can check it from your end also. |
adding |
So probably not an library issue ? |
I really don't understand what exactly is the issue.. or how do I even debug the issue |
Maybe I will add to docs (in debug section) to try set |
setting |
@freeboub @KrzysztofMoch reopening the issue as setting |
Same problem still persists in 6.2.0, You can check by logging "isBuffering", It never returns false |
useEffect(() => {
if (Platform.OS === 'ios' && loading) {
setTimeout(() => {
setLoading(false);
}, 2500);
}
}, [loading]); For temporary workaround you can do this |
We cannot use this hack in production... The bug should be fixed |
If you want to investigate here are some inputs: |
react-native-video+6.1.2.patch I made the patch, it works fine, but at the beginning when I start playing the video, the buffering takes time to return false is proportional to the length of the video. |
@Meet-Kapadiya are you testing with drm videos or normal? |
HLS streams |
To solve this you can set
|
It seems that it only happens with HLS/m3u8 format, please take a look at that @freeboub |
The MPEG-TS & m3u8 video does not work at all but for HLS the video works for 30 seconds and you get a error. HLS Error at 30 seconds: Let me know if you need a url to try to replicate this? @freeboub I appreciate your help. Video Code Below:
|
@freeboub @KrzysztofMoch Please try any m3u8/hls test url you prefer. onBuffer will return true even if video is playing |
It happens to me too. |
But what if video is playing and buffering at the same time? |
It's a work around, but i can suggest to try this:
Basically isPlaying from onPlaybackStateChanged return false, but you did not paused the video it means it's loading |
@moskalakamil can you help me debug the issue? there are no error logs... it's just the video keeps on buffering at random spots... especially with longer-length videos |
@moskalakamil @KrzysztofMoch thank you so much for the rewrite... the videos that used to be stuck buffering on seek seem to play seamlessly now.. probably this issue is solved. I will be testing it for a day more and let you know the updates. |
Sure! Kudos to @KrzysztofMoch for rewriting it. It’s great to hear that it solved your issue! |
Version
v6 (Beta)
What platforms are you having the problem on?
iOS
Architecture
Old architecture
What happened?
After seeking the hls video in ios is just stuck buffering and never plays back.
Reproduction
repository link
Reproduction
Step to reproduce this bug are:
The text was updated successfully, but these errors were encountered: