public final class

RandomTrackSelection.Factory

extends java.lang.Object

implements ExoTrackSelection.Factory

 java.lang.Object

↳androidx.media3.exoplayer.trackselection.RandomTrackSelection.Factory

Overview

Factory for RandomTrackSelection instances.

Summary

Constructors
publicFactory()

publicFactory(int seed)

Methods
public ExoTrackSelectioncreateTrackSelections(ExoTrackSelection.Definition definitions[], BandwidthMeter bandwidthMeter, MediaSource.MediaPeriodId mediaPeriodId, Timeline timeline)

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

Constructors

public Factory()

public Factory(int seed)

Parameters:

seed: A seed for the java.util.Random instance used by the factory.

Methods

public ExoTrackSelection createTrackSelections(ExoTrackSelection.Definition definitions[], BandwidthMeter bandwidthMeter, MediaSource.MediaPeriodId mediaPeriodId, Timeline timeline)