mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
changed BUFFER_MS
This commit is contained in:
parent
d526861649
commit
141cb4ae2f
1 changed files with 6 additions and 7 deletions
|
@ -670,11 +670,6 @@ class CS3IPlayer : IPlayer {
|
|||
**/
|
||||
maxVideoHeight: Int? = null
|
||||
): ExoPlayer {
|
||||
val bufferDurationMs = if (videoBufferMs <= 0) {
|
||||
DefaultLoadControl.DEFAULT_MAX_BUFFER_MS
|
||||
} else {
|
||||
videoBufferMs.toInt()
|
||||
}
|
||||
val exoPlayerBuilder =
|
||||
ExoPlayer.Builder(context)
|
||||
.setRenderersFactory { eventHandler, videoRendererEventListener, audioRendererEventListener, textRendererOutput, metadataRendererOutput ->
|
||||
|
@ -718,12 +713,16 @@ class CS3IPlayer : IPlayer {
|
|||
}
|
||||
)
|
||||
.setBackBuffer(
|
||||
bufferDurationMs,
|
||||
30000,
|
||||
true
|
||||
)
|
||||
.setBufferDurationsMs(
|
||||
DefaultLoadControl.DEFAULT_MIN_BUFFER_MS,
|
||||
bufferDurationMs,
|
||||
if (videoBufferMs <= 0) {
|
||||
DefaultLoadControl.DEFAULT_MAX_BUFFER_MS
|
||||
} else {
|
||||
videoBufferMs.toInt()
|
||||
},
|
||||
DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_MS,
|
||||
DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS
|
||||
).build()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue