void getThumbnail (int index,
Called to get thumbnail bitmap. This method is called on UI thread. When provider finds
cache bitmap, it may invoke
immediately. Provider may start background thread and invoke
onThumbnailLoaded(Bitmap, int) later in UI thread. The method might
be called multiple times for the same position, PlaybackSeekDataProvider must guarantee
to replace pending
PlaybackSeekDataProvider.ResultCallback with the new one. When seeking right,
getThumbnail() will be called with increasing index; when seeking left, getThumbnail() will
be called with decreasing index. The increment of index can be used by subclass to determine
int: Index of position in
PlaybackSeekDataProvider.ResultCallback: The callback to receive the result on UI thread. It may be called within
getThumbnail() if hit cache directly.
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-11-09 UTC.