Skip to content

Commit 6d47999

Browse files
committed
Player: inc max segments per load to 10; upd MediaServiceCore
1 parent 01ba18c commit 6d47999

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

MediaServiceCore

Submodule MediaServiceCore updated 29 files

common/src/main/java/com/liskovsoft/smartyoutubetv2/common/app/models/playback/controllers/AutoFrameRateController.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ private void savePlayback() {
219219
}
220220

221221
private void restorePlayback() {
222+
if (getPlayer() == null) {
223+
return;
224+
}
225+
222226
// Fix restore after disable afr: don't do afr enabled check
223227
if (!skipAfr() && mAutoFrameRateHelper.isSupported() && getPlayerData().getAfrPauseMs() > 0) {
224228
mStateController.blockPlay(false);

common/src/main/java/com/liskovsoft/smartyoutubetv2/common/exoplayer/ExoMediaSourceFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class ExoMediaSourceFactory {
5858
private static final String TAG = ExoMediaSourceFactory.class.getSimpleName();
5959
@SuppressLint("StaticFieldLeak")
6060
//private static ExoMediaSourceFactory sInstance;
61-
private static final int MAX_SEGMENTS_PER_LOAD = 1; // default - 1 (1-5)
61+
private static final int MAX_SEGMENTS_PER_LOAD = 10; // default - 1 (1-5)
6262
private static final String USER_AGENT = DefaultHeaders.APP_USER_AGENT;
6363
@SuppressLint("StaticFieldLeak")
6464
private static final DefaultBandwidthMeter BANDWIDTH_METER = new DefaultBandwidthMeter();

smarttubetv/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ android {
5757
applicationId "app.smarttube"
5858
minSdkVersion project.properties.minSdkVersion
5959
targetSdkVersion project.properties.targetSdkVersion
60-
versionCode 2340
61-
versionName "31.50"
60+
versionCode 2344
61+
versionName "31.54"
6262
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
6363
buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"
6464

0 commit comments

Comments
 (0)