fix: adjust buffer durations and prioritize time over size in video player module

This commit is contained in:
2026-04-07 19:25:03 +02:00
parent fb1d099ec1
commit bc41116118

View File

@@ -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