flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

Best strategy to implement a video feed screen

Open aytunch opened this issue 5 years ago • 1 comments
trafficstars

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.

aytunch avatar Oct 05 '20 16:10 aytunch

Hi @aytunch

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

tarek360 avatar May 15 '22 18:05 tarek360