com.aliyun.player

## Interface IPlayer.OnSubtitleDisplayListener

- Enclosing interface:
    IPlayer

      public static interface IPlayer.OnSubtitleDisplayListener

  Subtitle display callback.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onSubtitleExtAdded(int trackIndex, java.lang.String url)` External subtitles have been added
    `void` | `onSubtitleHeader(int trackIndex, java.lang.String header)` Subtitle header.
    `void` | `onSubtitleHide(int trackIndex, long id)` Hide subtitles.
    `void` | `onSubtitleShow(int trackIndex, long id, java.lang.String data)` Show subtitles.

- - ### Method Detail

    - #### onSubtitleExtAdded

          void onSubtitleExtAdded(int trackIndex,
                                  java.lang.String url)

      External subtitles have been added
      Parameters:
        `trackIndex` - stream id
        `url` - subtitle url

    - #### onSubtitleShow

          void onSubtitleShow(int trackIndex,
                              long id,
                              java.lang.String data)

      Show subtitles.
      Parameters:
        `id` - Index.
        `data` - Content.

    - #### onSubtitleHide

          void onSubtitleHide(int trackIndex,
                              long id)

      Hide subtitles.
      Parameters:
        `trackIndex` - track index
        `id` - subtitle Index.

    - #### onSubtitleHeader

          void onSubtitleHeader(int trackIndex,
                                java.lang.String header)

      Subtitle header.
      Parameters:
        `trackIndex` - track index
        `header` - subtitle header.