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.
|
public void setPreviewTime(int previewTime)
previewTime
- Unit: seconds.public void setEncryptType(VidPlayerConfigGen.EncryptType type)
type
- The specified encryption type. See VidPlayerConfigGen.EncryptType.public void setMtsHlsUriToken(java.lang.String token)
token
- public void addPlayerConfig(java.lang.String key, java.lang.String value)
key
- Key.value
- Value.public void addPlayerConfig(java.lang.String key, int value)
key
- Key.value
- Value.public java.lang.String genConfig()