Package com.google.android.exoplayer2

## Class SimpleExoPlayer.Builder

- java.lang.Object
- - com.google.android.exoplayer2.SimpleExoPlayer.Builder

- Enclosing class:
    SimpleExoPlayer

      @Deprecated
      public static final class SimpleExoPlayer.Builder
      extends Object

  Deprecated.
  Use `ExoPlayer.Builder` instead.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Builder​(Context context)` | Deprecated. Use `Builder(Context)` instead.
    `Builder​(Context context, ExtractorsFactory extractorsFactory)` | Deprecated. Use `Builder(Context, MediaSource.Factory)` and `DefaultMediaSourceFactory(Context, ExtractorsFactory)` instead.
    `Builder​(Context context, RenderersFactory renderersFactory)` | Deprecated. Use `Builder(Context, RenderersFactory)` instead.
    `Builder​(Context context, RenderersFactory renderersFactory, ExtractorsFactory extractorsFactory)` | Deprecated. Use `Builder(Context, RenderersFactory, MediaSource.Factory)` and `DefaultMediaSourceFactory(Context, ExtractorsFactory)` instead.
    `Builder​(Context context, RenderersFactory renderersFactory, TrackSelector trackSelector, MediaSource.Factory mediaSourceFactory, LoadControl loadControl, BandwidthMeter bandwidthMeter, AnalyticsCollector analyticsCollector)` | Deprecated. Use `Builder(Context, RenderersFactory, MediaSource.Factory, TrackSelector, LoadControl, BandwidthMeter, AnalyticsCollector)` instead.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `SimpleExoPlayer` | `build()` | Deprecated. Use `ExoPlayer.Builder.build()` instead.
    `SimpleExoPlayer.Builder` | `experimentalSetForegroundModeTimeoutMs​(long timeoutMs)` | Deprecated. Use `ExoPlayer.Builder.experimentalSetForegroundModeTimeoutMs(long)` instead.
    `SimpleExoPlayer.Builder` | `setAnalyticsCollector​(AnalyticsCollector analyticsCollector)` | Deprecated. Use `ExoPlayer.Builder.setAnalyticsCollector(AnalyticsCollector)` instead.
    `SimpleExoPlayer.Builder` | `setAudioAttributes​(AudioAttributes audioAttributes, boolean handleAudioFocus)` | Deprecated. Use `ExoPlayer.Builder.setAudioAttributes(AudioAttributes, boolean)` instead.
    `SimpleExoPlayer.Builder` | `setBandwidthMeter​(BandwidthMeter bandwidthMeter)` | Deprecated. Use `ExoPlayer.Builder.setBandwidthMeter(BandwidthMeter)` instead.
    `SimpleExoPlayer.Builder` | `setClock​(Clock clock)` | Deprecated. Use `ExoPlayer.Builder.setClock(Clock)` instead.
    `SimpleExoPlayer.Builder` | `setDetachSurfaceTimeoutMs​(long detachSurfaceTimeoutMs)` | Deprecated. Use `ExoPlayer.Builder.setDetachSurfaceTimeoutMs(long)` instead.
    `SimpleExoPlayer.Builder` | `setHandleAudioBecomingNoisy​(boolean handleAudioBecomingNoisy)` | Deprecated. Use `ExoPlayer.Builder.setHandleAudioBecomingNoisy(boolean)` instead.
    `SimpleExoPlayer.Builder` | `setLivePlaybackSpeedControl​(LivePlaybackSpeedControl livePlaybackSpeedControl)` | Deprecated. Use `ExoPlayer.Builder.setLivePlaybackSpeedControl(LivePlaybackSpeedControl)` instead.
    `SimpleExoPlayer.Builder` | `setLoadControl​(LoadControl loadControl)` | Deprecated. Use `ExoPlayer.Builder.setLoadControl(LoadControl)` instead.
    `SimpleExoPlayer.Builder` | `setLooper​(Looper looper)` | Deprecated. Use `ExoPlayer.Builder.setLooper(Looper)` instead.
    `SimpleExoPlayer.Builder` | `setMediaSourceFactory​(MediaSource.Factory mediaSourceFactory)` | Deprecated. Use `ExoPlayer.Builder.setMediaSourceFactory(MediaSource.Factory)` instead.
    `SimpleExoPlayer.Builder` | `setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems)` | Deprecated. Use `ExoPlayer.Builder.setPauseAtEndOfMediaItems(boolean)` instead.
    `SimpleExoPlayer.Builder` | `setPriorityTaskManager​(PriorityTaskManager priorityTaskManager)` | Deprecated. Use `ExoPlayer.Builder.setPriorityTaskManager(PriorityTaskManager)` instead.
    `SimpleExoPlayer.Builder` | `setReleaseTimeoutMs​(long releaseTimeoutMs)` | Deprecated. Use `ExoPlayer.Builder.setReleaseTimeoutMs(long)` instead.
    `SimpleExoPlayer.Builder` | `setSeekBackIncrementMs​(long seekBackIncrementMs)` | Deprecated. Use `ExoPlayer.Builder.setSeekBackIncrementMs(long)` instead.
    `SimpleExoPlayer.Builder` | `setSeekForwardIncrementMs​(long seekForwardIncrementMs)` | Deprecated. Use `ExoPlayer.Builder.setSeekForwardIncrementMs(long)` instead.
    `SimpleExoPlayer.Builder` | `setSeekParameters​(SeekParameters seekParameters)` | Deprecated. Use `ExoPlayer.Builder.setSeekParameters(SeekParameters)` instead.
    `SimpleExoPlayer.Builder` | `setSkipSilenceEnabled​(boolean skipSilenceEnabled)` | Deprecated. Use `ExoPlayer.Builder.setSkipSilenceEnabled(boolean)` instead.
    `SimpleExoPlayer.Builder` | `setTrackSelector​(TrackSelector trackSelector)` | Deprecated. Use `ExoPlayer.Builder.setTrackSelector(TrackSelector)` instead.
    `SimpleExoPlayer.Builder` | `setUseLazyPreparation​(boolean useLazyPreparation)` | Deprecated. Use `ExoPlayer.Builder.setUseLazyPreparation(boolean)` instead.
    `SimpleExoPlayer.Builder` | `setVideoChangeFrameRateStrategy​(@com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int videoChangeFrameRateStrategy)` | Deprecated. Use `ExoPlayer.Builder.setVideoChangeFrameRateStrategy(int)` instead.
    `SimpleExoPlayer.Builder` | `setVideoScalingMode​(@com.google.android.exoplayer2.C.VideoScalingMode int videoScalingMode)` | Deprecated. Use `ExoPlayer.Builder.setVideoScalingMode(int)` instead.
    `SimpleExoPlayer.Builder` | `setWakeMode​(@com.google.android.exoplayer2.C.WakeMode int wakeMode)` | Deprecated. Use `ExoPlayer.Builder.setWakeMode(int)` instead.

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### Builder

          @Deprecated
          public Builder​(Context context)

      Deprecated.
      Use `Builder(Context)` instead.

    - #### Builder

          @Deprecated
          public Builder​(Context context,
                         RenderersFactory renderersFactory)

      Deprecated.
      Use `Builder(Context, RenderersFactory)` instead.

    - #### Builder

          @Deprecated
          public Builder​(Context context,
                         ExtractorsFactory extractorsFactory)

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

    - #### Builder

          @Deprecated
          public Builder​(Context context,
                         RenderersFactory renderersFactory,
                         ExtractorsFactory extractorsFactory)

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

    - #### Builder

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

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

  - ### Method Detail

    - #### experimentalSetForegroundModeTimeoutMs

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder experimentalSetForegroundModeTimeoutMs​(long timeoutMs)

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

    - #### setTrackSelector

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setTrackSelector​(TrackSelector trackSelector)

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

    - #### setMediaSourceFactory

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setMediaSourceFactory​(MediaSource.Factory mediaSourceFactory)

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

    - #### setLoadControl

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setLoadControl​(LoadControl loadControl)

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

    - #### setBandwidthMeter

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setBandwidthMeter​(BandwidthMeter bandwidthMeter)

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

    - #### setLooper

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setLooper​(Looper looper)

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

    - #### setAnalyticsCollector

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setAnalyticsCollector​(AnalyticsCollector analyticsCollector)

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

    - #### setPriorityTaskManager

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setPriorityTaskManager​(@Nullable
                                                                PriorityTaskManager priorityTaskManager)

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

    - #### setAudioAttributes

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setAudioAttributes​(AudioAttributes audioAttributes,
                                                            boolean handleAudioFocus)

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

    - #### setWakeMode

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setWakeMode​(@WakeMode
                                                     @com.google.android.exoplayer2.C.WakeMode int wakeMode)

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

    - #### setHandleAudioBecomingNoisy

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setHandleAudioBecomingNoisy​(boolean handleAudioBecomingNoisy)

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

    - #### setSkipSilenceEnabled

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setSkipSilenceEnabled​(boolean skipSilenceEnabled)

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

    - #### setVideoScalingMode

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setVideoScalingMode​(@VideoScalingMode
                                                             @com.google.android.exoplayer2.C.VideoScalingMode int videoScalingMode)

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

    - #### setVideoChangeFrameRateStrategy

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setVideoChangeFrameRateStrategy​(@VideoChangeFrameRateStrategy
                                                                         @com.google.android.exoplayer2.C.VideoChangeFrameRateStrategy int videoChangeFrameRateStrategy)

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

    - #### setUseLazyPreparation

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setUseLazyPreparation​(boolean useLazyPreparation)

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

    - #### setSeekParameters

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setSeekParameters​(SeekParameters seekParameters)

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

    - #### setSeekBackIncrementMs

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setSeekBackIncrementMs​(@IntRange(from=1L)
                                                                long seekBackIncrementMs)

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

    - #### setSeekForwardIncrementMs

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setSeekForwardIncrementMs​(@IntRange(from=1L)
                                                                   long seekForwardIncrementMs)

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

    - #### setReleaseTimeoutMs

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setReleaseTimeoutMs​(long releaseTimeoutMs)

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

    - #### setDetachSurfaceTimeoutMs

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setDetachSurfaceTimeoutMs​(long detachSurfaceTimeoutMs)

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

    - #### setPauseAtEndOfMediaItems

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems)

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

    - #### setLivePlaybackSpeedControl

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setLivePlaybackSpeedControl​(LivePlaybackSpeedControl livePlaybackSpeedControl)

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

    - #### setClock

          @CanIgnoreReturnValue
          @Deprecated
          public SimpleExoPlayer.Builder setClock​(Clock clock)

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

    - #### build

          @Deprecated
          public SimpleExoPlayer build()

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