Use 64 KiB as the default progressive load interval

This ensures a small value is used by default, solving buffering issues at the beginning of videos
This commit is contained in:
Stypox 2022-04-28 11:32:33 +02:00
parent 9a5decdb28
commit b8dbb3f073
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
3 changed files with 7 additions and 6 deletions

View File

@ -426,7 +426,7 @@ public final class PlayerHelper {
context.getString(R.string.progressive_load_interval_key),
context.getString(R.string.progressive_load_interval_default_value));
if (context.getString(R.string.progressive_load_interval_default_value)
if (context.getString(R.string.progressive_load_interval_exoplayer_default_value)
.equals(preferredIntervalBytes)) {
return ProgressiveMediaSource.DEFAULT_LOADING_CHECK_INTERVAL_BYTES;
}

View File

@ -56,20 +56,21 @@
</string-array>
<string name="progressive_load_interval_key">progressive_load_interval</string>
<string name="progressive_load_interval_default_value">default</string>
<string name="progressive_load_interval_default_value">64</string>
<string name="progressive_load_interval_exoplayer_default_value">exoplayer_default</string>
<string-array name="progressive_load_interval_descriptions">
<item>1 KiB</item>
<item>16 KiB</item>
<item>64 KiB</item>
<item>256 KiB</item>
<item>@string/progressive_load_interval_default</item>
<item>@string/progressive_load_interval_exoplayer_default</item>
</string-array>
<string-array name="progressive_load_interval_values">
<item>1</item>
<item>16</item>
<item>64</item>
<item>@string/progressive_load_interval_default_value</item>
<item>256</item>
<item>default</item>
<item>@string/progressive_load_interval_exoplayer_default_value</item>
</string-array>
<string name="minimize_on_exit_key">minimize_on_exit_key</string>

View File

@ -733,7 +733,7 @@
<string name="on">On</string>
<string name="off">Off</string>
<!-- Progressive Load Interval -->
<string name="progressive_load_interval_default">ExoPlayer default</string>
<string name="progressive_load_interval_exoplayer_default">ExoPlayer default</string>
<!-- New streams notifications -->
<string name="notifications_disabled">Notifications are disabled</string>
<string name="get_notified">Get notified</string>