public final class

SimpleExoPlayer.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.SimpleExoPlayer.Builder

Summary

Constructors
publicBuilder(Context context)

publicBuilder(Context context, ExtractorsFactory extractorsFactory)

publicBuilder(Context context, RenderersFactory renderersFactory)

publicBuilder(Context context, RenderersFactory renderersFactory, ExtractorsFactory extractorsFactory)

publicBuilder(Context context, RenderersFactory renderersFactory, TrackSelector trackSelector, MediaSource.Factory mediaSourceFactory, LoadControl loadControl, BandwidthMeter bandwidthMeter, AnalyticsCollector analyticsCollector)

Methods
public SimpleExoPlayerbuild()

public SimpleExoPlayer.BuilderexperimentalSetForegroundModeTimeoutMs(long timeoutMs)

public SimpleExoPlayer.BuildersetAnalyticsCollector(AnalyticsCollector analyticsCollector)

public SimpleExoPlayer.BuildersetAudioAttributes(AudioAttributes audioAttributes, boolean handleAudioFocus)

public SimpleExoPlayer.BuildersetBandwidthMeter(BandwidthMeter bandwidthMeter)

public SimpleExoPlayer.BuildersetClock(Clock clock)

public SimpleExoPlayer.BuildersetDetachSurfaceTimeoutMs(long detachSurfaceTimeoutMs)

public SimpleExoPlayer.BuildersetHandleAudioBecomingNoisy(boolean handleAudioBecomingNoisy)

public SimpleExoPlayer.BuildersetLivePlaybackSpeedControl(LivePlaybackSpeedControl livePlaybackSpeedControl)

public SimpleExoPlayer.BuildersetLoadControl(LoadControl loadControl)

public SimpleExoPlayer.BuildersetLooper(Looper looper)

public SimpleExoPlayer.BuildersetMediaSourceFactory(MediaSource.Factory mediaSourceFactory)

public SimpleExoPlayer.BuildersetPauseAtEndOfMediaItems(boolean pauseAtEndOfMediaItems)

public SimpleExoPlayer.BuildersetPriorityTaskManager(PriorityTaskManager priorityTaskManager)

public SimpleExoPlayer.BuildersetReleaseTimeoutMs(long releaseTimeoutMs)

public SimpleExoPlayer.BuildersetSeekBackIncrementMs(long seekBackIncrementMs)

public SimpleExoPlayer.BuildersetSeekForwardIncrementMs(long seekForwardIncrementMs)

public SimpleExoPlayer.BuildersetSeekParameters(SeekParameters seekParameters)

public SimpleExoPlayer.BuildersetSkipSilenceEnabled(boolean skipSilenceEnabled)

public SimpleExoPlayer.BuildersetTrackSelector(TrackSelector trackSelector)

public SimpleExoPlayer.BuildersetUseLazyPreparation(boolean useLazyPreparation)

public SimpleExoPlayer.BuildersetVideoChangeFrameRateStrategy(int videoChangeFrameRateStrategy)

public SimpleExoPlayer.BuildersetVideoScalingMode(int videoScalingMode)

public SimpleExoPlayer.BuildersetWakeMode(int wakeMode)

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

Constructors

public Builder(Context context)

Deprecated: Use ExoPlayer.Builder.Builder(Context) instead.

public Builder(Context context, RenderersFactory renderersFactory)

Deprecated: Use ExoPlayer.Builder.Builder(Context, RenderersFactory) instead.

public Builder(Context context, ExtractorsFactory extractorsFactory)

Deprecated: Use ExoPlayer.Builder.Builder(Context, MediaSource.Factory) and DefaultMediaSourceFactory.DefaultMediaSourceFactory(Context, ExtractorsFactory) instead.

public Builder(Context context, RenderersFactory renderersFactory, ExtractorsFactory extractorsFactory)

Deprecated: Use ExoPlayer.Builder.Builder(Context, RenderersFactory, MediaSource.Factory) and DefaultMediaSourceFactory.DefaultMediaSourceFactory(Context, ExtractorsFactory) instead.

public Builder(Context context, RenderersFactory renderersFactory, TrackSelector trackSelector, MediaSource.Factory mediaSourceFactory, LoadControl loadControl, BandwidthMeter bandwidthMeter, AnalyticsCollector analyticsCollector)

Deprecated: Use ExoPlayer.Builder.Builder(Context, RenderersFactory, MediaSource.Factory, TrackSelector, LoadControl, BandwidthMeter, AnalyticsCollector) instead.

Methods

public SimpleExoPlayer.Builder experimentalSetForegroundModeTimeoutMs(long timeoutMs)

Deprecated: Use ExoPlayer.Builder.experimentalSetForegroundModeTimeoutMs(long) instead.

public SimpleExoPlayer.Builder setTrackSelector(TrackSelector trackSelector)

Deprecated: Use ExoPlayer.Builder.setTrackSelector(TrackSelector) instead.

public SimpleExoPlayer.Builder setMediaSourceFactory(MediaSource.Factory mediaSourceFactory)

Deprecated: Use ExoPlayer.Builder.setMediaSourceFactory(MediaSource.Factory) instead.

public SimpleExoPlayer.Builder setLoadControl(LoadControl loadControl)

Deprecated: Use ExoPlayer.Builder.setLoadControl(LoadControl) instead.

public SimpleExoPlayer.Builder setBandwidthMeter(BandwidthMeter bandwidthMeter)

Deprecated: Use ExoPlayer.Builder.setBandwidthMeter(BandwidthMeter) instead.

public SimpleExoPlayer.Builder setLooper(Looper looper)

Deprecated: Use ExoPlayer.Builder.setLooper(Looper) instead.

public SimpleExoPlayer.Builder setAnalyticsCollector(AnalyticsCollector analyticsCollector)

Deprecated: Use ExoPlayer.Builder.setAnalyticsCollector(AnalyticsCollector) instead.

public SimpleExoPlayer.Builder setPriorityTaskManager(PriorityTaskManager priorityTaskManager)

Deprecated: Use ExoPlayer.Builder.setPriorityTaskManager(PriorityTaskManager) instead.

public SimpleExoPlayer.Builder setAudioAttributes(AudioAttributes audioAttributes, boolean handleAudioFocus)

Deprecated: Use ExoPlayer.Builder.setAudioAttributes(AudioAttributes, boolean) instead.

public SimpleExoPlayer.Builder setWakeMode(int wakeMode)

Deprecated: Use ExoPlayer.Builder.setWakeMode(int) instead.

public SimpleExoPlayer.Builder setHandleAudioBecomingNoisy(boolean handleAudioBecomingNoisy)

Deprecated: Use ExoPlayer.Builder.setHandleAudioBecomingNoisy(boolean) instead.

public SimpleExoPlayer.Builder setSkipSilenceEnabled(boolean skipSilenceEnabled)

Deprecated: Use ExoPlayer.Builder.setSkipSilenceEnabled(boolean) instead.

public SimpleExoPlayer.Builder setVideoScalingMode(int videoScalingMode)

Deprecated: Use ExoPlayer.Builder.setVideoScalingMode(int) instead.

public SimpleExoPlayer.Builder setVideoChangeFrameRateStrategy(int videoChangeFrameRateStrategy)

Deprecated: Use ExoPlayer.Builder.setVideoChangeFrameRateStrategy(int) instead.

public SimpleExoPlayer.Builder setUseLazyPreparation(boolean useLazyPreparation)

Deprecated: Use ExoPlayer.Builder.setUseLazyPreparation(boolean) instead.

public SimpleExoPlayer.Builder setSeekParameters(SeekParameters seekParameters)

Deprecated: Use ExoPlayer.Builder.setSeekParameters(SeekParameters) instead.

public SimpleExoPlayer.Builder setSeekBackIncrementMs(long seekBackIncrementMs)

Deprecated: Use ExoPlayer.Builder.setSeekBackIncrementMs(long) instead.

public SimpleExoPlayer.Builder setSeekForwardIncrementMs(long seekForwardIncrementMs)

Deprecated: Use ExoPlayer.Builder.setSeekForwardIncrementMs(long) instead.

public SimpleExoPlayer.Builder setReleaseTimeoutMs(long releaseTimeoutMs)

Deprecated: Use ExoPlayer.Builder.setReleaseTimeoutMs(long) instead.

public SimpleExoPlayer.Builder setDetachSurfaceTimeoutMs(long detachSurfaceTimeoutMs)

Deprecated: Use ExoPlayer.Builder.setDetachSurfaceTimeoutMs(long) instead.

public SimpleExoPlayer.Builder setPauseAtEndOfMediaItems(boolean pauseAtEndOfMediaItems)

Deprecated: Use ExoPlayer.Builder.setPauseAtEndOfMediaItems(boolean) instead.

public SimpleExoPlayer.Builder setLivePlaybackSpeedControl(LivePlaybackSpeedControl livePlaybackSpeedControl)

Deprecated: Use ExoPlayer.Builder.setLivePlaybackSpeedControl(LivePlaybackSpeedControl) instead.

public SimpleExoPlayer.Builder setClock(Clock clock)

Deprecated: Use ExoPlayer.Builder.setClock(Clock) instead.

public SimpleExoPlayer build()

Deprecated: Use ExoPlayer.Builder.build() instead.