-
- All Implemented Interfaces:
public class CachingParameters
The configuration of a caching task.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
CachingParameters.Builder
The builder for the caching parameters.
-
Field Summary
Fields Modifier and Type Field Description private final String
amount
private final Date
expirationDate
private final Long
bandwidth
private final CachingPreferredTrackSelection
preferredTrackSelection
-
Method Summary
Modifier and Type Method Description String
getAmount()
The amount of data to cache for the given stream. Date
getExpirationDate()
The expiration date of the cached data. Long
getBandwidth()
The upper bandwidth limit of the quality to cache. CachingPreferredTrackSelection
getPreferredTrackSelection()
The preferred audio/text tracks to cache. -
-
Method Detail
-
getAmount
@NonNull() String getAmount()
The amount of data to cache for the given stream. Possible formats:
- A number in seconds.
- A percentage string (XX%) for a proportion of the content duration.
Default: "100%"
-
getExpirationDate
@NonNull() Date getExpirationDate()
The expiration date of the cached data.
Default: 30 minutes after starting the caching task.
-
getBandwidth
@NonNull() Long getBandwidth()
The upper bandwidth limit of the quality to cache.
Default: MAX_VALUE
-
getPreferredTrackSelection
@NonNull() CachingPreferredTrackSelection getPreferredTrackSelection()
The preferred audio/text tracks to cache.
Default: An empty CachingPreferredTrackSelection
-
-
-
-