com.aliyun.player

## Interface IPlayer.OnTrackChangedListener

- Enclosing interface:
    IPlayer

      public static interface IPlayer.OnTrackChangedListener

  Stream switchover callback.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onChangedFail(TrackInfo trackInfo, ErrorInfo errorInfo)` Failed to switch the stream.
    `void` | `onChangedSuccess(TrackInfo trackInfo)` The stream is switched.

- - ### Method Detail

    - #### onChangedSuccess

          void onChangedSuccess(TrackInfo trackInfo)

      The stream is switched.
      Parameters:
        `trackInfo` - Stream information. See `TrackInfo`.

    - #### onChangedFail

          void onChangedFail(TrackInfo trackInfo,
                             ErrorInfo errorInfo)

      Failed to switch the stream.
      Parameters:
        `trackInfo` - Stream information. See `TrackInfo`.
        `errorInfo` - Error message. See `ErrorInfo`.