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?
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 ofVlcPlayerController
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 withsetStreamUrl
. 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.