solid-software / flutter_vlc_player

📺 Flutter VLC powered video player.
526 stars 255 forks source link

Best strategy to implement a video feed screen #115

Open aytunch opened 4 years ago

aytunch commented 4 years ago

Just like TikTok, I want to implement a video feed screen with infinite scrolling. The List Item widgets will be VlcPlayer and the url data sources will be taken from Firebase. A user can see 100's of videos but I want to limit the number of VlcPlayerController to just 4 or 5 controllers. This way is better for memory management right? If a user does not see the player/controller anymore, I want to set a new data source/url to that controller with setStreamUrl. Would this free the previous video's resources? Or would they be leaking all over the place? If not, how should I dispose/release old controller's resources?

One last question: How to know if a video is ready or prepared to be played after a second Url change:

VlcPlayerController.setStreamUrl

Is the video ready after this line or should I check for onInit to fire once again?

Thanks.

tarek360 commented 2 years ago

Hi @aytunch

have you found answers to your questions? or have you decided to use a different player?