com.aliyun.player

## 类 VidPlayerConfigGen

- java.lang.Object
- - com.aliyun.player.VidPlayerConfigGen

-     public class VidPlayerConfigGen
      extends java.lang.Object

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static class` | `VidPlayerConfigGen.EncryptType` Encryption types

  - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addPlayerConfig(java.lang.String key, int value)` Add other config parameters.
    `void` | `addPlayerConfig(java.lang.String key, java.lang.String value)` Add other config parameters.
    `java.lang.String` | `genConfig()` Query config parameters.
    `void` | `setEncryptType(VidPlayerConfigGen.EncryptType type)` Set the encryption type for streams returned by the server.
    `void` | `setMtsHlsUriToken(java.lang.String token)` Set the HLS UriToken of MTS.
    `void` | `setPreviewTime(int previewTime)` Set the preview duration.

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

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

- - ### 构造器详细资料

    - #### VidPlayerConfigGen

          public VidPlayerConfigGen()

  - ### 方法详细资料

    - #### setPreviewTime

          public void setPreviewTime(int previewTime)

      Set the preview duration.
      参数:
        `previewTime` - Unit: seconds.

    - #### setEncryptType

          public void setEncryptType(VidPlayerConfigGen.EncryptType type)

      Set the encryption type for streams returned by the server. If an encryption type is specified, then only streams use the specified encryption type are returned. For example, if the encryption type is set to Unencrypted, then only unencrypted streams are returned. If no encryption type is specified, an encrypted stream is returned for each definition.
      参数:
        `type` - The specified encryption type. See VidPlayerConfigGen.EncryptType.

    - #### setMtsHlsUriToken

          public void setMtsHlsUriToken(java.lang.String token)

      Set the HLS UriToken of MTS.
      参数:
        `token` -

    - #### addPlayerConfig

          public void addPlayerConfig(java.lang.String key,
                                      java.lang.String value)

      Add other config parameters.
      参数:
        `key` - Key.
        `value` - Value.

    - #### addPlayerConfig

          public void addPlayerConfig(java.lang.String key,
                                      int value)

      Add other config parameters.
      参数:
        `key` - Key.
        `value` - Value.

    - #### genConfig

          public java.lang.String genConfig()

      Query config parameters.
      返回: