Android Player SDK 2.1.0: fast start, caching, and preloading
Android Player SDK 2.1.0: fast start, caching, and preloading
The FastPix Android Player SDK 2.1.0 adds four independent levers to cut video startup time in short-form feeds, plus a video resize mode. See Preload and cache for faster startup and Set the video resize mode.
What’s new:
-
Fast start (on by default): the player now installs a tuned
LoadControlso playback begins after 500 ms of buffered media instead of Media3’s 1000 ms. Tune it withBufferConfig, including aBufferConfig.FEEDpreset for reels orBufferConfig.MEDIA3_DEFAULTto restore the previous behavior. -
Disk caching: opt in with
CacheConfigfor a process-wide, LRU-evicted read-through cache so re-watches and scroll-backs play from local storage. UseCacheConfig.forOnDemandFeed()for VOD to cache playlists as well as segments, and inspect or reset the store withMediaCacheProvider. -
Pre-caching upcoming items:
FastPixPreCacherwarms the next feed items into the cache while the current one plays, removing the swipe-to-play delay. Tune it withPreCacheConfig, and pin ABR to the warmed rendition withAbrConfig. -
Next-item preload:
PreloadConfig.FEEDpreloads the next queued item when one player holds a queue set withsetMediaItems. -
Video resize mode: set how video scales in the
PlayerViewwithResizeMode(FIT,FILL,ZOOM, and more), in code or with theapp:fastPixResizeModeXML attribute.