public class PlayerConfig
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
boolean |
mClearFrameWhenStop
Indicate whether to clear the player surface when playback is stopped.
|
boolean |
mDisableAudio
Disable audio track.
|
boolean |
mDisableVideo
Disable video track.
|
int |
mEnableHttpDns
whether enable http dns, -1 : as global setting, 0: disable
|
boolean |
mEnableLocalCache
Enable or disable local cahe.
|
boolean |
mEnableSEI
Indicate whether SEI is enabled.
|
boolean |
mEnableVideoTunnelRender
Indicate whether TunnelRender is enabled.
|
int |
mHighBufferDuration
Maximum buffer time.
|
java.lang.String |
mHttpProxy
HTTP proxy.
|
int |
mLiveStartIndex
The start playing index of fragments, when HLS is live, .
|
long |
mMaxBackwardBufferDurationMs
max backward buffer duration.
|
int |
mMaxBufferDuration
Maximum buffer size.
|
int |
mMaxDelayTime
Maximum delay time.
|
int |
mMaxProbeSize
Maximum probe size.
|
int |
mNetworkRetryCount
The maximum network reconnection attempts. networkTimeout specifies the reconnection interval. networkRetryCount=0 indicates that automatic reconnection is disabled.
|
int |
mNetworkTimeout
Network connection timeout time.
|
int |
mPositionTimerIntervalMs
Set the frequencies of Progress.
|
boolean |
mPreferAudio
prefer audio playback; prefer audio playback when under insufficient network bandwidth.
|
java.lang.String |
mReferrer
Referer.
|
int |
mStartBufferDuration
The size of the data that the player must buffer before it can start playing the media.
|
java.lang.String |
mUserAgent
Set a request UserAgent.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String[] |
getCustomHeaders()
Get custom set headers.
|
void |
setCustomHeaders(java.lang.String[] headers)
Set custom headers
|
public java.lang.String mHttpProxy
public java.lang.String mReferrer
public int mNetworkTimeout
public int mMaxDelayTime
public int mMaxBufferDuration
public int mHighBufferDuration
public int mStartBufferDuration
public int mMaxProbeSize
public boolean mClearFrameWhenStop
public boolean mEnableVideoTunnelRender
public boolean mEnableSEI
public java.lang.String mUserAgent
public int mNetworkRetryCount
public int mLiveStartIndex
public boolean mDisableAudio
public boolean mDisableVideo
public int mPositionTimerIntervalMs
public long mMaxBackwardBufferDurationMs
public boolean mPreferAudio
public boolean mEnableLocalCache
public int mEnableHttpDns