Package com.castlabs.android.player

# Class ChunkSampleSourceListener

java.lang.Object
com.castlabs.android.player.ChunkSampleSourceListener

All Implemented Interfaces:
  `com.google.android.exoplayer2.source.MediaSourceEventListener`

public class ChunkSampleSourceListener extends Object implements com.google.android.exoplayer2.source.MediaSourceEventListener

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from interface com.google.android.exoplayer2.source.MediaSourceEventListener

  `com.google.android.exoplayer2.source.MediaSourceEventListener.EventDispatcher, com.google.android.exoplayer2.source.MediaSourceEventListener.LoadEventInfo, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChunkSampleSourceListener(PlayerController playerController)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onDownstreamFormatChanged(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData)`
  `void`
  `onLoadCanceled(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.LoadEventInfo loadEventInfo, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData)`
  `void`
  `onLoadCompleted(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.LoadEventInfo loadEventInfo, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData)`
  `void`
  `onLoadError(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.LoadEventInfo loadEventInfo, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData, IOException error, boolean wasCanceled)`
  `void`
  `onLoadStarted(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.LoadEventInfo loadEventInfo, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData)`
  `void`
  `onMediaPeriodCreated(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId)`
  `void`
  `onMediaPeriodReleased(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId)`
  `void`
  `onReadingStarted(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId)`
  `void`
  `onUpstreamDiscarded(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData)`

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

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

- ## Constructor Details

  - ### ChunkSampleSourceListener

    public ChunkSampleSourceListener(@NonNull PlayerController playerController)

- ## Method Details

  - ### onMediaPeriodCreated

    public void onMediaPeriodCreated(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId)
    Specified by:
      `onMediaPeriodCreated` in interface `com.google.android.exoplayer2.source.MediaSourceEventListener`

  - ### onMediaPeriodReleased

    public void onMediaPeriodReleased(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId)
    Specified by:
      `onMediaPeriodReleased` in interface `com.google.android.exoplayer2.source.MediaSourceEventListener`

  - ### onLoadStarted

    public void onLoadStarted(int windowIndex, @Nullable com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.LoadEventInfo loadEventInfo, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData)
    Specified by:
      `onLoadStarted` in interface `com.google.android.exoplayer2.source.MediaSourceEventListener`

  - ### onLoadCompleted

    public void onLoadCompleted(int windowIndex, @Nullable com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.LoadEventInfo loadEventInfo, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData)
    Specified by:
      `onLoadCompleted` in interface `com.google.android.exoplayer2.source.MediaSourceEventListener`

  - ### onLoadCanceled

    public void onLoadCanceled(int windowIndex, @Nullable com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.LoadEventInfo loadEventInfo, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData)
    Specified by:
      `onLoadCanceled` in interface `com.google.android.exoplayer2.source.MediaSourceEventListener`

  - ### onLoadError

    public void onLoadError(int windowIndex, @Nullable com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.LoadEventInfo loadEventInfo, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData, IOException error, boolean wasCanceled)
    Specified by:
      `onLoadError` in interface `com.google.android.exoplayer2.source.MediaSourceEventListener`

  - ### onReadingStarted

    public void onReadingStarted(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId)
    Specified by:
      `onReadingStarted` in interface `com.google.android.exoplayer2.source.MediaSourceEventListener`

  - ### onUpstreamDiscarded

    public void onUpstreamDiscarded(int windowIndex, com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData)
    Specified by:
      `onUpstreamDiscarded` in interface `com.google.android.exoplayer2.source.MediaSourceEventListener`

  - ### onDownstreamFormatChanged

    public void onDownstreamFormatChanged(int windowIndex, @Nullable com.google.android.exoplayer2.source.MediaSource.MediaPeriodId mediaPeriodId, com.google.android.exoplayer2.source.MediaSourceEventListener.MediaLoadData mediaLoadData)
    Specified by:
      `onDownstreamFormatChanged` in interface `com.google.android.exoplayer2.source.MediaSourceEventListener`