Package com.castlabs.sdk.thumbs
Class BaseThumbnailProvider
java.lang.Object
com.castlabs.sdk.thumbs.BaseThumbnailProvider
- All Implemented Interfaces:
ThumbnailProvider
- Direct Known Subclasses:
BifThumbnailProvider,JpgThumbnailProvider,VttThumbnailProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.castlabs.sdk.thumbs.ThumbnailProvider
ThumbnailProvider.Callback, ThumbnailProvider.IndexRefreshListener, ThumbnailProvider.RequestQueuePosition, ThumbnailProvider.ThumbnailResult -
Constructor Summary
ConstructorsConstructorDescriptionBaseThumbnailProvider(PlayerController playerController, com.castlabs.sdk.thumbs.ThumbnailLoader.Factory loaderFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndexRefreshListener(ThumbnailProvider.IndexRefreshListener indexRefreshListener) voiddestroy()Free up all the resources, meaning this provider will not be used anymoreGets cue-points list of the thumbnails, or null if not loaded yet.getThumbnailPosition(long positionUs, int thumbnailIndex) Gets the actual position of the thumbnail in micro seconds, or null if not loaded yet.voidremoveIndexRefreshListener(ThumbnailProvider.IndexRefreshListener indexRefreshListener) Remove anThumbnailProvider.IndexRefreshListenerMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.castlabs.sdk.thumbs.ThumbnailProvider
cancelPendingRequests, cancelRequests, getDownloadableResources, getThumbnail, getThumbnail, getThumbnail, getThumbnail, setLoadingStrategy, setRequestQueuePosition
-
Constructor Details
-
BaseThumbnailProvider
public BaseThumbnailProvider(@Nullable PlayerController playerController, @NonNull com.castlabs.sdk.thumbs.ThumbnailLoader.Factory loaderFactory)
-
-
Method Details
-
addIndexRefreshListener
Description copied from interface:ThumbnailProvider- Specified by:
addIndexRefreshListenerin interfaceThumbnailProvider- Parameters:
indexRefreshListener- the listener
-
removeIndexRefreshListener
Description copied from interface:ThumbnailProviderRemove anThumbnailProvider.IndexRefreshListener- Specified by:
removeIndexRefreshListenerin interfaceThumbnailProvider- Parameters:
indexRefreshListener- the listener
-
getCuePointsList
Description copied from interface:ThumbnailProviderGets cue-points list of the thumbnails, or null if not loaded yet.- Specified by:
getCuePointsListin interfaceThumbnailProvider- Returns:
- The cue-points list
-
getThumbnailPosition
Description copied from interface:ThumbnailProviderGets the actual position of the thumbnail in micro seconds, or null if not loaded yet.- Specified by:
getThumbnailPositionin interfaceThumbnailProvider- Parameters:
positionUs- The requested position- Returns:
- The actual position of the thumbnail
-
destroy
@CallSuper public void destroy()Description copied from interface:ThumbnailProviderFree up all the resources, meaning this provider will not be used anymore- Specified by:
destroyin interfaceThumbnailProvider
-