You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know there's the shortform demo which uses PreloadManager, but the demo itself seems more complicated than it should be. It's using multiple players and I'm failing to understand why.
The article above metions:
Media3 ExoPlayer now supports preloading multiple media items to memory before adding them to the player, thanks to the new PreloadManager.
To me this sounds like it should be possible to have shorts preloading even with a single player, but maybe I'm missing something and there's a good explanation why the demo is using multiple players.
My end goal is to have smooth transition between short videos in view pager.
The text was updated successfully, but these errors were encountered:
@tonihei Thanks for looking at this! Can you give any time frame about the documentation or give a bit more in sight about the multi-player strategy now. I don't want to be writing something that will potentially end up as technical debt in 2 weeks for example.
Thanks for the question.
Yes, the PreloadManager should you give the ability to use a single exoplayer instance and preload multiple items as per your choice.
You can also customize the number of videos, duration for each and ranking for preload per video.
Check the Sample here android/socialite#91
with a single exoplayer instance doing this all.
I couldn't find much documentation on PreloadManager and how to use it.
I found this article
https://medium.com/google-exoplayer/media3-1-4-0-whats-new-ba1c9c17ee1a
when preload manager was introduced.
I know there's the shortform demo which uses PreloadManager, but the demo itself seems more complicated than it should be. It's using multiple players and I'm failing to understand why.
The article above metions:
To me this sounds like it should be possible to have shorts preloading even with a single player, but maybe I'm missing something and there's a good explanation why the demo is using multiple players.
My end goal is to have smooth transition between short videos in view pager.
The text was updated successfully, but these errors were encountered: