com.aliyun.player.nativeclass

## 类 TrackInfo

- java.lang.Object
- - com.aliyun.player.nativeclass.TrackInfo

-     public class TrackInfo
      extends java.lang.Object

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static class` | `TrackInfo.Type` Track types
    `static class` | `TrackInfo.VideoHDRType`

  - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `int` | `audioChannels`
    `java.lang.String` | `audioLang`
    `int` | `audioSampleFormat`
    `int` | `audioSampleRate`
    `static int` | `AUTO_SELECT_INDEX` The index of automatic bitrate switchover.
    `java.lang.String` | `description`
    `int` | `index`
    `TrackInfo.Type` | `mType`
    `java.lang.String` | `subtitleLang`
    `int` | `videoBitrate`
    `TrackInfo.VideoHDRType` | `videoHDRType`
    `int` | `videoHeight`
    `int` | `videoWidth`
    `java.lang.String` | `vodDefinition`
    `long` | `vodFileSize`
    `java.lang.String` | `vodFormat`
    `java.lang.String` | `vodPlayUrl`
    `java.lang.String` | `vodWaterMarkPlayUrl`

  - ### 构造器概要

    构造器
    构造器和说明
    `TrackInfo()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `int` | `getAudioChannels()` Query the number of channels of the audio stream.
    `java.lang.String` | `getAudioLang()` Query the language of the audio stream.
    `int` | `getAudioSampleFormat()` Query the sampling format of the audio stream.
    `int` | `getAudioSampleRate()` Query the sampling rate of the audio stream.
    `java.lang.String` | `getDescription()` Query the description of the stream.
    `int` | `getIndex()` Query the index of the stream.
    `java.lang.String` | `getSubtitleLang()` Query the language of the subtitle stream.
    `TrackInfo.Type` | `getType()` Query the type of the stream.
    `int` | `getVideoBitrate()` Query the bitrate of the video stream.
    `int` | `getVideoHDRType()`
    `int` | `getVideoHeight()` Query the height of the video stream.
    `int` | `getVideoWidth()` Query the width of the video stream.
    `java.lang.String` | `getVodDefinition()` Query the definition of the VOD stream.
    `long` | `getVodFileSize()` Query the size of the VOD file.
    `java.lang.String` | `getVodFormat()` Query the format of the media.
    `java.lang.String` | `getVodPlayUrl()` Query the playback URL.
    `java.lang.String` | `getVodWaterMarkPlayUrl()` Query the playback URL of the media with a watermark added.
    `void` | `setVideoHDRType(int type)`

    - ### 从类继承的方法 java.lang.Object

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

- - ### 字段详细资料

    - #### AUTO_SELECT_INDEX

          public static final int AUTO_SELECT_INDEX

      The index of automatic bitrate switchover. When this index is specified, the media is automatically switched among multiple bitrates.
      另请参阅:
        常量字段值

    - #### index

          public int index

    - #### mType

          public TrackInfo.Type mType

    - #### description

          public java.lang.String description

    - #### videoBitrate

          public int videoBitrate

    - #### videoWidth

          public int videoWidth

    - #### videoHeight

          public int videoHeight

    - #### videoHDRType

          public TrackInfo.VideoHDRType videoHDRType

    - #### audioLang

          public java.lang.String audioLang

    - #### audioChannels

          public int audioChannels

    - #### audioSampleRate

          public int audioSampleRate

    - #### audioSampleFormat

          public int audioSampleFormat

    - #### subtitleLang

          public java.lang.String subtitleLang

    - #### vodDefinition

          public java.lang.String vodDefinition

    - #### vodFileSize

          public long vodFileSize

    - #### vodPlayUrl

          public java.lang.String vodPlayUrl

    - #### vodWaterMarkPlayUrl

          public java.lang.String vodWaterMarkPlayUrl

    - #### vodFormat

          public java.lang.String vodFormat

  - ### 构造器详细资料

    - #### TrackInfo

          public TrackInfo()

  - ### 方法详细资料

    - #### setVideoHDRType

          public void setVideoHDRType(int type)

    - #### getVideoHDRType

          public int getVideoHDRType()

    - #### getVodPlayUrl

          public java.lang.String getVodPlayUrl()

      Query the playback URL. Note: Only when `getType()` = `TrackInfo.Type.TYPE_VOD`, this value is valid.
      返回:
        The playback URL.

    - #### getVodFormat

          public java.lang.String getVodFormat()

      Query the format of the media. Note: Only when `getType()` = `TrackInfo.Type.TYPE_VOD`, this value is valid.
      返回:
        The format of the media.

    - #### getVodWaterMarkPlayUrl

          public java.lang.String getVodWaterMarkPlayUrl()

      Query the playback URL of the media with a watermark added. Note: Only when `getType()` = `TrackInfo.Type.TYPE_VOD`, this value is valid.
      返回:
        The playback URL of the media with a watermark added.

    - #### getIndex

          public int getIndex()

      Query the index of the stream.
      返回:
        The index of the stream.

    - #### getType

          public TrackInfo.Type getType()

      Query the type of the stream.
      返回:
        The type of the stream.

    - #### getVideoBitrate

          public int getVideoBitrate()

      Query the bitrate of the video stream. Note: Only when `getType()` = `TrackInfo.Type.TYPE_VIDEO`, this value is valid.
      返回:
        The bitrate of the video stream.

    - #### getVideoWidth

          public int getVideoWidth()

      Query the width of the video stream. Note: Only when `getType()` = `TrackInfo.Type.TYPE_VIDEO`, this value is valid.
      返回:
        The width of the video stream.

    - #### getVideoHeight

          public int getVideoHeight()

      Query the height of the video stream. Note: Only when `getType()` = `TrackInfo.Type.TYPE_VIDEO`, this value is valid.
      返回:
        The height of the video stream.

    - #### getAudioLang

          public java.lang.String getAudioLang()

      Query the language of the audio stream. Note: Only when `getType()` = `TrackInfo.Type.TYPE_AUDIO`, this value is valid.
      返回:
        The language of the audio stream.

    - #### getAudioChannels

          public int getAudioChannels()

      Query the number of channels of the audio stream. Note: Only when `getType()` = `TrackInfo.Type.TYPE_AUDIO`, this value is valid.
      返回:
        The number of channels of the audio stream.

    - #### getAudioSampleRate

          public int getAudioSampleRate()

      Query the sampling rate of the audio stream. Note: Only when `getType()` = `TrackInfo.Type.TYPE_AUDIO`, this value is valid.
      返回:
        The sampling rate of the audio stream.

    - #### getAudioSampleFormat

          public int getAudioSampleFormat()

      Query the sampling format of the audio stream. Note: Only when `getType()` = `TrackInfo.Type.TYPE_AUDIO`, this value is valid.
      返回:
        The sampling format of the audio stream.

    - #### getSubtitleLang

          public java.lang.String getSubtitleLang()

      Query the language of the subtitle stream. Note: Only when `getType()` = `TrackInfo.Type.TYPE_SUBTITLE`, this value is valid.
      返回:
        The language of the subtitle stream.

    - #### getDescription

          public java.lang.String getDescription()

      Query the description of the stream.
      返回:
        The stream description.

    - #### getVodDefinition

          public java.lang.String getVodDefinition()

      Query the definition of the VOD stream. Note: Only when `getType()` = `TrackInfo.Type.TYPE_VOD`, this value is valid.
      返回:
        The definition of the VOD stream.

    - #### getVodFileSize

          public long getVodFileSize()

      Query the size of the VOD file. Note: Only when `getType()` = `TrackInfo.Type.TYPE_VOD`, this value is valid.
      返回:
        The size of the VOD file.