Package com.google.android.exoplayer2

## Class ExoPlayerFactory

- java.lang.Object
- - com.google.android.exoplayer2.ExoPlayerFactory

-     @Deprecated
      public final class ExoPlayerFactory
      extends Object

  Deprecated.
  Use `SimpleExoPlayer.Builder` or `ExoPlayer.Builder` instead.

- - ### Method Summary

    All Methods Static Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static ExoPlayer` | `newInstance​(Context context, Renderer[] renderers, TrackSelector trackSelector)` | Deprecated. Use `ExoPlayer.Builder` instead.
    `static ExoPlayer` | `newInstance​(Context context, Renderer[] renderers, TrackSelector trackSelector, LoadControl loadControl)` | Deprecated. Use `ExoPlayer.Builder` instead.
    `static ExoPlayer` | `newInstance​(Context context, Renderer[] renderers, TrackSelector trackSelector, LoadControl loadControl, Looper applicationLooper)` | Deprecated. Use `ExoPlayer.Builder` instead.
    `static ExoPlayer` | `newInstance​(Context context, Renderer[] renderers, TrackSelector trackSelector, LoadControl loadControl, BandwidthMeter bandwidthMeter, Looper applicationLooper)` | Deprecated. Use `ExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context, RenderersFactory renderersFactory, TrackSelector trackSelector)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context, RenderersFactory renderersFactory, TrackSelector trackSelector, LoadControl loadControl)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context, RenderersFactory renderersFactory, TrackSelector trackSelector, LoadControl loadControl, Looper applicationLooper)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context, RenderersFactory renderersFactory, TrackSelector trackSelector, LoadControl loadControl, AnalyticsCollector analyticsCollector)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context, RenderersFactory renderersFactory, TrackSelector trackSelector, LoadControl loadControl, AnalyticsCollector analyticsCollector, Looper applicationLooper)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context, RenderersFactory renderersFactory, TrackSelector trackSelector, LoadControl loadControl, BandwidthMeter bandwidthMeter)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context, RenderersFactory renderersFactory, TrackSelector trackSelector, LoadControl loadControl, BandwidthMeter bandwidthMeter, AnalyticsCollector analyticsCollector, Looper applicationLooper)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context, TrackSelector trackSelector)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context, TrackSelector trackSelector, LoadControl loadControl)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context, TrackSelector trackSelector, LoadControl loadControl, int extensionRendererMode)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.
    `static SimpleExoPlayer` | `newSimpleInstance​(Context context, TrackSelector trackSelector, LoadControl loadControl, int extensionRendererMode, long allowedVideoJoiningTimeMs)` | Deprecated. Use `SimpleExoPlayer.Builder` instead.

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

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

- - ### Method Detail

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context,
                                                          TrackSelector trackSelector,
                                                          LoadControl loadControl,
                                                          @ExtensionRendererMode
                                                          int extensionRendererMode)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context,
                                                          TrackSelector trackSelector,
                                                          LoadControl loadControl,
                                                          @ExtensionRendererMode
                                                          int extensionRendererMode,
                                                          long allowedVideoJoiningTimeMs)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context,
                                                          TrackSelector trackSelector)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context,
                                                          RenderersFactory renderersFactory,
                                                          TrackSelector trackSelector)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context,
                                                          TrackSelector trackSelector,
                                                          LoadControl loadControl)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context,
                                                          RenderersFactory renderersFactory,
                                                          TrackSelector trackSelector,
                                                          LoadControl loadControl)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context,
                                                          RenderersFactory renderersFactory,
                                                          TrackSelector trackSelector,
                                                          LoadControl loadControl,
                                                          BandwidthMeter bandwidthMeter)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context,
                                                          RenderersFactory renderersFactory,
                                                          TrackSelector trackSelector,
                                                          LoadControl loadControl,
                                                          AnalyticsCollector analyticsCollector)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context,
                                                          RenderersFactory renderersFactory,
                                                          TrackSelector trackSelector,
                                                          LoadControl loadControl,
                                                          Looper applicationLooper)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context,
                                                          RenderersFactory renderersFactory,
                                                          TrackSelector trackSelector,
                                                          LoadControl loadControl,
                                                          AnalyticsCollector analyticsCollector,
                                                          Looper applicationLooper)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newSimpleInstance

          @Deprecated
          public static SimpleExoPlayer newSimpleInstance​(Context context,
                                                          RenderersFactory renderersFactory,
                                                          TrackSelector trackSelector,
                                                          LoadControl loadControl,
                                                          BandwidthMeter bandwidthMeter,
                                                          AnalyticsCollector analyticsCollector,
                                                          Looper applicationLooper)

      Deprecated.
      Use `SimpleExoPlayer.Builder` instead.

    - #### newInstance

          @Deprecated
          public static ExoPlayer newInstance​(Context context,
                                              Renderer[] renderers,
                                              TrackSelector trackSelector)

      Deprecated.
      Use `ExoPlayer.Builder` instead.

    - #### newInstance

          @Deprecated
          public static ExoPlayer newInstance​(Context context,
                                              Renderer[] renderers,
                                              TrackSelector trackSelector,
                                              LoadControl loadControl)

      Deprecated.
      Use `ExoPlayer.Builder` instead.

    - #### newInstance

          @Deprecated
          public static ExoPlayer newInstance​(Context context,
                                              Renderer[] renderers,
                                              TrackSelector trackSelector,
                                              LoadControl loadControl,
                                              Looper applicationLooper)

      Deprecated.
      Use `ExoPlayer.Builder` instead.

    - #### newInstance

          @Deprecated
          public static ExoPlayer newInstance​(Context context,
                                              Renderer[] renderers,
                                              TrackSelector trackSelector,
                                              LoadControl loadControl,
                                              BandwidthMeter bandwidthMeter,
                                              Looper applicationLooper)

      Deprecated.
      Use `ExoPlayer.Builder` instead.