public class VidPlayerConfigGen
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
VidPlayerConfigGen.EncryptType
Encryption types
|
| Constructor and Description |
|---|
VidPlayerConfigGen() |
| Modifier and Type | Method and Description |
|---|---|
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()