Package com.castlabs.android.downloader
Class DownloadInfo
java.lang.Object
com.castlabs.android.downloader.DownloadInfo
Utility class that can be used to read download.info files
to limit the availability of tracks.
- Since:
- 3.2.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int[]
The original indices of the selected video tracks -
Method Summary
-
Field Details
-
videoTracks
@Nullable public final int[] videoTracksThe original indices of the selected video tracks
-
-
Method Details
-
getAudioTracks
-
getSubtitleTracks
-
getSideloadedTracks
-
load
Takes a path to a Manifest and checks if next to the manifest file, a download info file exists. If so, a the info file is loaded and returned. Otherwise, an empty download info instance is returned.- Parameters:
pathToManifest
- The path to the manifest file- Returns:
- The new info instance
-
write
public static void write(String manifestPath, @Nullable int[] videoTracks, @Nullable Track[] audioTracks, @Nullable Track[] subtitleTracks, @Nullable Track[] sideloadedTracks) throws IOException - Throws:
IOException
-