-
-
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]: Video first frame do flickering when player load video and start playing, Demo Attached #3740
Comments
v6 with flickering issueFlickering_issue.mp4*v5 with smooth scrollv5-no_flickering.mp4 |
@KrzysztofMoch @freeboub You guys are doing a really good job, Thank you for your contribution, the latest v6 has made our lives easier, and only a few issues currently we are facing, Let me know if you need anything else from my end 🙌 |
@ZakirBangash mind if we connect, working on somthing similar. |
Yeah sure Let's connect |
@ZakirBangash You can use the react-native-video@6.0.0-alpha.11 this solves for me. Now I request the maintainers to fix this issue this happens when we change the video quality or change the video on the fly. Thanks in advance. |
In my mind (maybe I am wrong) there is no change regarding to View management between alpha.11 & next release. |
@MdAbubakar @tdammy92 @ZakirBangash I think I have found a solution to fix this issue. |
Thank you @freeboub for prompt attention to this matter, I think it is part of new release, Let me see it |
Hi @freeboub I just tried the latest release @6.0.0-rc.1, which contains this PR, this time player does not even load the video |
@ZakirBangash can you try to revert my last change please ? |
@freeboub I reverted the last changes related to shuttterView management and created PR, but I have verify it, then will let you know |
@freeboub I reverted the last changes and created PR, tested it out, and the video is loading now. |
@freeboub @ZakirBangash which version is more stable now , @6.0.0-rc.1 or v6.0.0-alpha.11 ? |
@tdammy92 for this flickering issue the v6.0.0-alpha.11 is more stable. |
Notice this is a duplicate of #3653 |
I just push another version of the fix, can you please test it ? Thank you |
I will test it on Monday morning, I will let you know then, as I'm away from the keyboard atm 🙏 |
Hey @freeboub I tested it, The flickering is gone, but only the first frame of the video plays,then the rest of the frames paused, and the video frame movements stopped, but the audio is still going on, and most of the time the first frame is also not playing . Let me share the recording |
Please share a sample url ! |
We are using m3u8, I will share few m3u8 urls as well Demo.mp4 |
@ZakirBangash I am too far to peint your wall to a normal color 😆 |
@freeboub When I remove poster prop, it works fine then, can you guide me what should I do? i have poster prop and directly giving thumbnail URL. wondering how could i replace poster |
Can you please try to apply following patch locally. diff --git a/src/Video.tsx b/src/Video.tsx
index 7cdbc211..aebda7ee 100644
--- a/src/Video.tsx
+++ b/src/Video.tsx
@@ -130,6 +130,7 @@ const Video = forwardRef<VideoRef, ReactVideoProps>(
posterResizeMode && posterResizeMode !== 'none'
? posterResizeMode
: 'contain',
+ opacity: 0.9,
}),
[posterResizeMode],
); |
another solution can be to change (in the same file) how poster display is done. |
I've encountered the same issue with the poster continuously showing. A simple solution I found is to add onReadyForDisplay to your Video component.
|
@freeboub Giving onReadyForDisplay callback works, we just need to give onReadyForDisplay an empty callback, and then it works. |
@ZakirBangash This is a very good clue to understand the issue, I was able to reproduce it with the sample now ! |
@ZakirBangash Can you explain the process of creating a poster using the ‘updateThumbnailWith0Frame’ method? |
Version
react-native-video: ^6.0.0-rc.0
react-native: 0.71.14
Video URL: HLS m3u8
What platforms are you having the problem on?
Android
Architecture
Old architecture
What happened?
I have a TikTok-like app where, on the home screen, when we try to scroll the video, there is a flickering issue. While this problem was not present in the previous version (v5), it has appeared now. I have recorded a demo video demonstrating this issue, and it is attached
Reproduction
repository link
Reproduction
Steps to reproduce this bug are: Swipable videos like TikTok, and swiping the video, a flicker will appear. like when we swipe to video, the first frame is small having black spaces, then suddenly remove black spaces, goes to full mode
The text was updated successfully, but these errors were encountered: