protected class

SegmentDownloader.Segment

extends java.lang.Object

implements java.lang.Comparable<SegmentDownloader.Segment>

 java.lang.Object

↳androidx.media3.exoplayer.offline.SegmentDownloader.Segment

Overview

Smallest unit of content to be downloaded.

Summary

Fields
public final DataSpecdataSpec

The DataSpec of the segment.

public final longstartTimeUs

The start time of the segment in microseconds.

Constructors
publicSegment(long startTimeUs, DataSpec dataSpec)

Constructs a Segment.

Methods
public intcompareTo(SegmentDownloader.Segment other)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public final long startTimeUs

The start time of the segment in microseconds.

public final DataSpec dataSpec

The DataSpec of the segment.

Constructors

public Segment(long startTimeUs, DataSpec dataSpec)

Constructs a Segment.

Methods

public int compareTo(SegmentDownloader.Segment other)