Package com.theoplayer.android.api.cache
Interface CachingTaskProgress
-
- All Implemented Interfaces:
public interface CachingTaskProgress
-
-
Method Summary
Modifier and Type Method Description abstract double
getDuration()
The requested cached duration of the media, in seconds. abstract long
getBytes()
The estimation of the amount this task will download and store, in bytes. abstract long
getBytesCached()
The amount downloaded and stored, in bytes. abstract TimeRanges
getCached()
The time ranges indicating the data which has been cached. abstract double
getSecondsCached()
The amount of content that has been cached. abstract double
getPercentageCached()
The percentage of content that has been cached. -
-
Method Detail
-
getDuration
abstract double getDuration()
The requested cached duration of the media, in seconds.
- Returns -1 if the duration is not available yet.
- Returns:
The amount that will be cached, in seconds.
-
getBytes
abstract long getBytes()
The estimation of the amount this task will download and store, in bytes.
- Returns -1 if the estimate is not available yet.
- Returns:
the data estimation, in bytes.
-
getBytesCached
abstract long getBytesCached()
The amount downloaded and stored, in bytes.
- Returns:
The amount of data downloaded and stored, in bytes.
-
getCached
@NonNull() abstract TimeRanges getCached()
The time ranges indicating the data which has been cached.
- Returns:
The time ranges cached. (NonNull)
-
getSecondsCached
abstract double getSecondsCached()
The amount of content that has been cached.
- Returns:
The duration cached, in seconds.
-
getPercentageCached
abstract double getPercentageCached()
The percentage of content that has been cached.
- Returns:
The percentage cached, between 0 and 1.
-
-
-
-