com.aliyun.player

## 接口 IPlayer.OnSubtitleDisplayListener

- 封闭接口:
    IPlayer

      public static interface IPlayer.OnSubtitleDisplayListener

  Subtitle display callback.

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `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.

- - ### 方法详细资料

    - #### onSubtitleExtAdded

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

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

    - #### onSubtitleShow

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

      Show subtitles.
      参数:
        `id` - Index.
        `data` - Content.

    - #### onSubtitleHide

          void onSubtitleHide(int trackIndex,
                              long id)

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

    - #### onSubtitleHeader

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

      Subtitle header.
      参数:
        `trackIndex` - track index
        `header` - subtitle header.