mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 02:53:09 +01:00
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:
parent
9a5decdb28
commit
b8dbb3f073
@ -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;
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user