Add seek preview thumbnails
Learn how to show spritesheet-based thumbnail previews during seek bar scrubbing in the FastPix Android Player.
Seek preview shows thumbnail previews while the user scrubs the seek bar. The SDK resolves spritesheets automatically for FastPix streams using the URL pattern https://images.fastpix.com/{playbackId}/spritesheet.json.
Enable seek preview
Configure seek preview when building the player:
Fallback modes
If the spritesheet doesn’t exist, or the media is not a FastPix stream, the SDK falls back:
TIMESTAMP: Shows a time label (for example,"02:30").SpritesheetMetadata.bitmapmay be null.NONE: Shows nothing.
Listen for preview events
Connect to a SeekBar
Wire the preview to your SeekBar’s touch events:
Fetch preview bitmaps directly
If you’re building a custom preview UI, you can request bitmaps directly from a coroutine: