mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-23 19:26:50 +00:00
fix: adjust buffer durations and prioritize time over size in video player module
This commit is contained in:
@@ -51,11 +51,12 @@ object VideoPlayerModule {
|
|||||||
)
|
)
|
||||||
val loadControl = DefaultLoadControl.Builder()
|
val loadControl = DefaultLoadControl.Builder()
|
||||||
.setBufferDurationsMs(
|
.setBufferDurationsMs(
|
||||||
25_000,
|
15_000, // minBufferMs
|
||||||
55_000,
|
50_000, // maxBufferMs
|
||||||
5_000,
|
2_500, // bufferForPlaybackMs
|
||||||
5_000
|
5_000 // bufferForPlaybackAfterRebufferMs
|
||||||
)
|
)
|
||||||
|
.setPrioritizeTimeOverSizeThresholds(true)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
// Configure RenderersFactory to use all available decoders and enable passthrough
|
// Configure RenderersFactory to use all available decoders and enable passthrough
|
||||||
|
|||||||
Reference in New Issue
Block a user