How would I prevent images from becoming gray for a second?

Hey, so im working on a video player that uses gif’s to play videos, however whenever it switches a new image, the new image becomes gray for a second. Ruining the illusion that it’s playing a video. Ive tried using contentprovider to preload the images but for some reason I’m still getting the same results, any tips on how to fix the gray image?

1 Like

You could use cloning to load it in before you actually show it. Allow me to paint a picture of this (i appreciate my drawing skills suck)
image
Essentially, you take the next image in the sequence and preload it off screen. Then, you remove the currently shown image and move in that next image. Repeat the process and voila!
If it doesn’t work, you may need more preloaded images. But nonetheless, you should see some improvement!

1 Like

ooh! its a little bit better, The images load quicker, but can I put the image like, underneath the other image for it to work?

Yeah, that’d work much better but make sure to get ZIndexes right and everything :+1:
Glad I could help, good luck!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.