No response, delayed response

I’m developing a movie streaming app. I’m pulling movie and photo links using Firebase Realtime Database, but when I click on “Movies” on the homepage, the list of movies opens after 6-7 seconds.
After playing the video, the application gives a “Not Responding” error. I click OK, and it gives the same error.
I’ve tried to solve the problem as best as I can, but I haven’t been able to. Can you help me?

Hi dear,

In the blocks you showed, I don’t see anything unusual, do you have other blocks to show?

Edit:
There’s a possibility that the player you’re using is causing the app to crash, but I have no way to verify it.

I tried it on two different devices and the same problem persists. When I open the app, it freezes for 5-6 seconds, then it recovers. There are no other blocks. I can’t figure out why this is happening. Off

Insted of web viewer try with chstom web viewer also make sure your video url is valid and works fine in browser

Are you referring that without doing anything “just opened the app” it’s just stuck?

Yes, I open the application, and after 5-6 seconds, it fixes itself and works flawlessly. The problem here is why I need to wait 5 seconds.

I think the creating image process is what makes it, can you use RecyclerList, I can see you’re loading the images direct to the component without any helpers to display the images,

Since you’re building the app from the start, I think you should use a native player component/extension, isn’t there any problem from using it?

1 Like

Since it’s loading many images, I think the slowness is also due to the fact that all images need to be loaded before displaying the list.
The perfect combination would be to use a recycler list, fetch small amounts of data at a time with lazy loading, and also use asynchronous image loading.

Edit:
You could also use low-resolution thumbnails if you want it to be even more responsive

1 Like

Thank you for your advice, but I’ve had a lot of difficulty so far. Changing and reinstalling blocks while doing this is both difficult and can lead to errors.Therefore, I’m thinking of replacing it with a Firebase blog instead of a Firebase web blog. If that still doesn’t work, I have no idea what to do.

I will give you a hand, i created something like this before, anyways are you going to host these movies yourself?

Can you help me? My blocks are above. I publish movies via links. I can’t give the name of the site unfortunately. I get a TMDB movie-specific API and convert it into a viewing link on the site.I still haven’t solved the problem I’m having. When I open the app, it freezes for the first 5-10 seconds, and the list of movies doesn’t open.

I just wanted to polish up something,

Does the site you’re getting viewing links not offer API? I wonder why firebase is included here. Are you processing these manually?