SimpleExoPlayer.Builder


class SimpleExoPlayer.Builder


Summary

Public constructors

Builder(context: Context!)

This function is deprecated.

Use Builder instead.

Builder(context: Context!, extractorsFactory: ExtractorsFactory!)

This function is deprecated.

Use Builder and DefaultMediaSourceFactory instead.

Builder(context: Context!, renderersFactory: RenderersFactory!)

This function is deprecated.

Use Builder instead.

Builder(
    context: Context!,
    renderersFactory: RenderersFactory!,
    extractorsFactory: ExtractorsFactory!
)

This function is deprecated.

Use Builder and DefaultMediaSourceFactory instead.

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

This function is deprecated.

Use Builder instead.

Public functions

SimpleExoPlayer!

This function is deprecated.

Use build instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use experimentalSetForegroundModeTimeoutMs instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setAnalyticsCollector instead.

SimpleExoPlayer.Builder!
@CanIgnoreReturnValue
setAudioAttributes(
    audioAttributes: AudioAttributes!,
    handleAudioFocus: Boolean
)

This function is deprecated.

Use setAudioAttributes instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setBandwidthMeter instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setClock instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setDetachSurfaceTimeoutMs instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setHandleAudioBecomingNoisy instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setLivePlaybackSpeedControl instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setLoadControl instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setLooper instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setMediaSourceFactory instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setPauseAtEndOfMediaItems instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setPriorityTaskManager instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setReleaseTimeoutMs instead.

SimpleExoPlayer.Builder!
@CanIgnoreReturnValue
setSeekBackIncrementMs(seekBackIncrementMs: @IntRange(from = 1) Long)

This function is deprecated.

Use setSeekBackIncrementMs instead.

SimpleExoPlayer.Builder!
@CanIgnoreReturnValue
setSeekForwardIncrementMs(seekForwardIncrementMs: @IntRange(from = 1) Long)

This function is deprecated.

Use setSeekForwardIncrementMs instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setSeekParameters instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setSkipSilenceEnabled instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setTrackSelector instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setUseLazyPreparation instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setVideoChangeFrameRateStrategy instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setVideoScalingMode instead.

SimpleExoPlayer.Builder!

This function is deprecated.

Use setWakeMode instead.

Public constructors

Builder

Builder(context: Context!)

Builder

Builder(context: Context!, extractorsFactory: ExtractorsFactory!)

Builder

Builder(context: Context!, renderersFactory: RenderersFactory!)

Builder

Builder(
    context: Context!,
    renderersFactory: RenderersFactory!,
    extractorsFactory: ExtractorsFactory!
)

Builder

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

Public functions

build

fun build(): SimpleExoPlayer!

experimentalSetForegroundModeTimeoutMs

@CanIgnoreReturnValue
fun experimentalSetForegroundModeTimeoutMs(timeoutMs: Long): SimpleExoPlayer.Builder!

setAnalyticsCollector

@CanIgnoreReturnValue
fun setAnalyticsCollector(analyticsCollector: AnalyticsCollector!): SimpleExoPlayer.Builder!

setAudioAttributes

@CanIgnoreReturnValue
fun setAudioAttributes(
    audioAttributes: AudioAttributes!,
    handleAudioFocus: Boolean
): SimpleExoPlayer.Builder!

setBandwidthMeter

@CanIgnoreReturnValue
fun setBandwidthMeter(bandwidthMeter: BandwidthMeter!): SimpleExoPlayer.Builder!

setClock

@CanIgnoreReturnValue
@VisibleForTesting
fun setClock(clock: Clock!): SimpleExoPlayer.Builder!

setDetachSurfaceTimeoutMs

@CanIgnoreReturnValue
fun setDetachSurfaceTimeoutMs(detachSurfaceTimeoutMs: Long): SimpleExoPlayer.Builder!

setHandleAudioBecomingNoisy

@CanIgnoreReturnValue
fun setHandleAudioBecomingNoisy(handleAudioBecomingNoisy: Boolean): SimpleExoPlayer.Builder!

setLivePlaybackSpeedControl

@CanIgnoreReturnValue
fun setLivePlaybackSpeedControl(
    livePlaybackSpeedControl: LivePlaybackSpeedControl!
): SimpleExoPlayer.Builder!

setLoadControl

@CanIgnoreReturnValue
fun setLoadControl(loadControl: LoadControl!): SimpleExoPlayer.Builder!

setLooper

@CanIgnoreReturnValue
fun setLooper(looper: Looper!): SimpleExoPlayer.Builder!

setMediaSourceFactory

@CanIgnoreReturnValue
fun setMediaSourceFactory(mediaSourceFactory: MediaSource.Factory!): SimpleExoPlayer.Builder!

setPauseAtEndOfMediaItems

@CanIgnoreReturnValue
fun setPauseAtEndOfMediaItems(pauseAtEndOfMediaItems: Boolean): SimpleExoPlayer.Builder!

setPriorityTaskManager

@CanIgnoreReturnValue
fun setPriorityTaskManager(priorityTaskManager: PriorityTaskManager?): SimpleExoPlayer.Builder!

setReleaseTimeoutMs

@CanIgnoreReturnValue
fun setReleaseTimeoutMs(releaseTimeoutMs: Long): SimpleExoPlayer.Builder!

setSeekBackIncrementMs

@CanIgnoreReturnValue
fun setSeekBackIncrementMs(seekBackIncrementMs: @IntRange(from = 1) Long): SimpleExoPlayer.Builder!

setSeekForwardIncrementMs

@CanIgnoreReturnValue
fun setSeekForwardIncrementMs(seekForwardIncrementMs: @IntRange(from = 1) Long): SimpleExoPlayer.Builder!

setSeekParameters

@CanIgnoreReturnValue
fun setSeekParameters(seekParameters: SeekParameters!): SimpleExoPlayer.Builder!

setSkipSilenceEnabled

@CanIgnoreReturnValue
fun setSkipSilenceEnabled(skipSilenceEnabled: Boolean): SimpleExoPlayer.Builder!

setTrackSelector

@CanIgnoreReturnValue
fun setTrackSelector(trackSelector: TrackSelector!): SimpleExoPlayer.Builder!

setUseLazyPreparation

@CanIgnoreReturnValue
fun setUseLazyPreparation(useLazyPreparation: Boolean): SimpleExoPlayer.Builder!

setVideoChangeFrameRateStrategy

@CanIgnoreReturnValue
fun setVideoChangeFrameRateStrategy(
    @C.VideoChangeFrameRateStrategy videoChangeFrameRateStrategy: Int
): SimpleExoPlayer.Builder!

setVideoScalingMode

@CanIgnoreReturnValue
fun setVideoScalingMode(@C.VideoScalingMode videoScalingMode: Int): SimpleExoPlayer.Builder!

setWakeMode

@CanIgnoreReturnValue
fun setWakeMode(@C.WakeMode wakeMode: Int): SimpleExoPlayer.Builder!