Class DataSourceThumbnailLoader

java.lang.Object
com.castlabs.sdk.thumbs.DataSourceThumbnailLoader

public class DataSourceThumbnailLoader extends Object
Loads thumbnail data using a DataSource. You can create instances of this class manually for example by using the PlayerController.getDataSourceFactory() to create the DataSource.

Note that if you are using ThumbsPlugin.createProvider(PlayerController, ThumbnailDataTrack, LoadingStrategy, String, ThumbnailLoader.Factory) there is no need to create an instance of the class manually.

Since:
4.0.0
  • Constructor Details

    • DataSourceThumbnailLoader

      public DataSourceThumbnailLoader(@NonNull com.google.android.exoplayer2.upstream.DataSource dataSource)
      Create a new loader for the given data source
      Parameters:
      dataSource - The data source
  • Method Details