Thumbnails ********** Common thumbnail reference across PRESTOplay SDKs. Covers formats, DASH/HLS signaling, side-loaded tracks, and authoring recommendations. What thumbnails provide ======================= Thumbnails are time-indexed preview images that map a playback position to an image or image region. * In-player use case: seek-bar preview while scrubbing * Data model: timestamp range plus image source * Rendering model: full image (single frame) or cropped tile from a sprite grid Stream-signaled thumbnails ========================== Dynamic Adaptive Streaming over HTTP (DASH) ------------------------------------------- In DASH, thumbnails are usually signaled as an image "AdaptationSet" with tiled sprites. "thumbnail_tile" declares the grid layout. In this example, each sprite contains 25 thumbnails (5 x 5). HTTP Live Streaming (HLS) ------------------------- In HLS, thumbnails are signaled from the multivariant playlist with "EXT-X-IMAGE-STREAM-INF", which points to an image media playlist. #EXTM3U #EXT-X-STREAM-INF:BANDWIDTH=200,CODECS="avc1,mp4a",RESOLUTION=960x540 video.m3u8 #EXT-X-IMAGE-STREAM-INF:RESOLUTION=240x135,CODECS="jpeg",BANDWIDTH=100,URI="image.m3u8" Image playlists can reference single images or tiled images. Side-loaded thumbnail formats ============================= When a stream does not carry thumbnail signaling, you can side-load one of these formats. Web Video Text Tracks (WebVTT) index ------------------------------------ WebVTT cues map time ranges to image URLs. WEBVTT 00:00:00.000 --> 00:00:09.999 thumb1.jpg 00:00:10.000 --> 00:00:19.999 thumb2.jpg Grid coordinates can be appended to each cue target. WEBVTT 00:00:00.000 --> 00:00:09.999 thumbs.jpg#xywh=0,0,320,180 00:00:10.000 --> 00:00:19.999 thumbs.jpg#xywh=320,0,320,180 Template-based images (single or grid) -------------------------------------- Template URLs use an index token such as "$index$" and optional grid metadata. * Single-image mode: one image per index * Grid mode: one image contains multiple thumbnails, addressed by grid position Binary Image Format (BIF) ------------------------- Some SDKs support Binary Image Format (BIF) as a compact, indexed thumbnail container. Authoring recommendations ========================= * Keep thumbnail interval consistent (for example, every 5 or 10 seconds) * Prefer sprite grids when you need to reduce request count * Keep grid dimensions practical for target devices * Validate that cue timelines cover the intended seek range * Use absolute URLs or preserve relative paths when packaging local WebVTT files Platform implementation guides ============================== * PRESTOplay for Android documentation (https://players.castlabs.com/android/latest/docs/build/html/index.html) * PRESTOplay for Apple documentation (https://players.castlabs.com/apple/latest/docs/index.html) * PRESTOplay for Web Apps thumbnail integration * PRESTOplay for React Native thumbnail integration