Back to Exoplayer

CueGroup (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/text/CueGroup.html

latest4.9 KB
Original Source

Package com.google.android.exoplayer2.text

Class CueGroup

  • java.lang.Object

    • com.google.android.exoplayer2.text.CueGroup
  • All Implemented Interfaces:Bundleable


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classCueGroupextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Bundleable](../Bundleable.html "interface in com.google.android.exoplayer2")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Class to represent the state of active Cues at a particular time.

Nested Class Summary

- 

Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable

Bundleable.Creator<T extends Bundleable>

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | static Bundleable.Creator<CueGroup> | CREATOR | Deprecated. | | ImmutableList<Cue> | cues | Deprecated.

The cues in this group. | | static CueGroup | EMPTY_TIME_ZERO | Deprecated.

An empty group with no Cues and presentation time of zero. | | long | presentationTimeUs | Deprecated.

The presentation time of the cues, in microseconds. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | CueGroup​(List<Cue> cues, long presentationTimeUs) | Deprecated.

Creates a CueGroup. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | Bundle | toBundle() | Deprecated.

Returns a Bundle representing the information stored in this object. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

EMPTY_TIME_ZERO

public static final[CueGroup](CueGroup.html "class in com.google.android.exoplayer2.text")EMPTY_TIME_ZERO

Deprecated.

An empty group with no Cues and presentation time of zero.

- 

cues

public final[ImmutableList](https://guava.dev/releases/31.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true "class or interface in com.google.common.collect")<[Cue](Cue.html "class in com.google.android.exoplayer2.text")> cues

Deprecated.

The cues in this group.

This list is in ascending order of priority. If any of the cue boxes overlap when displayed, the Cue nearer the end of the list should be shown on top.

This list may be empty if the group represents a state with no cues.

- 

presentationTimeUs

public final long presentationTimeUs

Deprecated.

The presentation time of the cues, in microseconds.

This time is an offset from the start of the current Timeline.Period.

- 

CREATOR

public static final[Bundleable.Creator](../Bundleable.Creator.html "interface in com.google.android.exoplayer2")<[CueGroup](CueGroup.html "class in com.google.android.exoplayer2.text")> CREATOR

Deprecated.

Constructor Detail

- 

CueGroup

public CueGroup​([List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Cue](Cue.html "class in com.google.android.exoplayer2.text")> cues,
                long presentationTimeUs)

Deprecated.

Creates a CueGroup.

Method Detail

- 

toBundle

public[Bundle](https://developer.android.com/reference/android/os/Bundle.html "class or interface in android.os")toBundle()

Deprecated.

Description copied from interface: Bundleable

Returns a Bundle representing the information stored in this object. Specified by:toBundle in interface Bundleable