SegmentDownloader.Segment


protected class SegmentDownloader.Segment implements Comparable


Smallest unit of content to be downloaded.

Summary

Public fields

final DataSpec

The DataSpec of the segment.

final long

The start time of the segment in microseconds.

Public constructors

Segment(long startTimeUs, DataSpec dataSpec)

Constructs a Segment.

Public methods

int

Public fields

dataSpec

public final DataSpec dataSpec

The DataSpec of the segment.

startTimeUs

public final long startTimeUs

The start time of the segment in microseconds.

Public constructors

Segment

public Segment(long startTimeUs, DataSpec dataSpec)

Constructs a Segment.

Public methods

compareTo

public int compareTo(SegmentDownloader.Segment other)