public class PlayerConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
mClearFrameWhenStop
Indicate whether to clear the player surface when playback is stopped.
|
boolean |
mDisableAudio
Disable audio track.
|
boolean |
mDisableVideo
Disable video track.
|
int |
mEnableEnhancedHttpDns
whether enable enhanced http dns, -1 : as global setting, 0: disable
|
boolean |
mEnableHttp3
Use http3 to request, supported standards:RFC 9114(HTTP3) and RFC 9000(QUIC v1), false by default
If request failed, it will automatically downgrade to normal http.
|
int |
mEnableHttpDns
whether enable http dns, -1 : as global setting, 0: disable
|
boolean |
mEnableLocalCache
When local cached is enabled in GlobalSettings API, this config can be used to enable or disable local cache in
current player instance, by default is ON.
|
boolean |
mEnableLowLatencyMode
Used to set specific chip low-latency mode on its hardware decoder, to lower decoder latency and finally lower client-to-client latency.
|
boolean |
mEnableProjection
Enable projection for current player
You need to integrate projection SDK to do this
Default is false.
|
boolean |
mEnableSEI
Indicate whether SEI is enabled.
|
boolean |
mEnableStrictAuthMode
For media that enabled URL authorization(HLS protocol), when local cache is enabled, we can choose different auth mode:
Non Strict Mode(false): Auth is cached.
|
boolean |
mEnableStrictFlvHeader
Used to fast stream start when playing pure audio or pure video in RTMP/FLV live stream.
|
boolean |
mEnableVideoBufferRender
Indicate whether MediaCodec Buffer Render 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.
|
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.
|
int |
mStartBufferLimit
start preload or download limit.
|
int |
mStopBufferLimit
stop preload or download limit.
|
java.lang.String |
mUserAgent
Set a request UserAgent.
|
Modifier and Type | Method and Description |
---|---|
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 mEnableVideoBufferRender
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
public int mEnableEnhancedHttpDns
public boolean mEnableHttp3
public boolean mEnableStrictFlvHeader
public boolean mEnableLowLatencyMode
public boolean mEnableProjection
public boolean mEnableStrictAuthMode
public int mStartBufferLimit
public int mStopBufferLimit