Skip to content

Commit

Permalink
bump to 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliskov committed Nov 8, 2020
1 parent 331d0ac commit b8f419a
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,54 +85,54 @@ protected void buildAudioRenderers(
}
}

@Override
protected void buildVideoRenderers(Context context,
int extensionRendererMode,
MediaCodecSelector mediaCodecSelector,
@Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
boolean playClearSamplesWithoutKeys,
boolean enableDecoderFallback,
Handler eventHandler,
VideoRendererEventListener eventListener,
long allowedVideoJoiningTimeMs,
ArrayList<Renderer> out) {
super.buildVideoRenderers(
context,
extensionRendererMode,
mediaCodecSelector,
drmSessionManager,
playClearSamplesWithoutKeys,
enableDecoderFallback,
eventHandler,
eventListener,
allowedVideoJoiningTimeMs,
out);

Renderer originMediaCodecVideoRenderer = null;
int index = 0;

for (Renderer renderer : out) {
if (renderer instanceof MediaCodecVideoRenderer) {
originMediaCodecVideoRenderer = renderer;
break;
}
index++;
}

if (originMediaCodecVideoRenderer != null) {
// replace origin with custom
out.remove(originMediaCodecVideoRenderer);
out.add(index,
new FrameDropFixMediaCodecVideoRenderer(
context,
mediaCodecSelector,
allowedVideoJoiningTimeMs,
drmSessionManager,
playClearSamplesWithoutKeys,
enableDecoderFallback,
eventHandler,
eventListener,
MAX_DROPPED_VIDEO_FRAME_COUNT_TO_NOTIFY));
}
}
//@Override
//protected void buildVideoRenderers(Context context,
// int extensionRendererMode,
// MediaCodecSelector mediaCodecSelector,
// @Nullable DrmSessionManager<FrameworkMediaCrypto> drmSessionManager,
// boolean playClearSamplesWithoutKeys,
// boolean enableDecoderFallback,
// Handler eventHandler,
// VideoRendererEventListener eventListener,
// long allowedVideoJoiningTimeMs,
// ArrayList<Renderer> out) {
// super.buildVideoRenderers(
// context,
// extensionRendererMode,
// mediaCodecSelector,
// drmSessionManager,
// playClearSamplesWithoutKeys,
// enableDecoderFallback,
// eventHandler,
// eventListener,
// allowedVideoJoiningTimeMs,
// out);
//
// Renderer originMediaCodecVideoRenderer = null;
// int index = 0;
//
// for (Renderer renderer : out) {
// if (renderer instanceof MediaCodecVideoRenderer) {
// originMediaCodecVideoRenderer = renderer;
// break;
// }
// index++;
// }
//
// if (originMediaCodecVideoRenderer != null) {
// // replace origin with custom
// out.remove(originMediaCodecVideoRenderer);
// out.add(index,
// new FrameDropFixMediaCodecVideoRenderer(
// context,
// mediaCodecSelector,
// allowedVideoJoiningTimeMs,
// drmSessionManager,
// playClearSamplesWithoutKeys,
// enableDecoderFallback,
// eventHandler,
// eventListener,
// MAX_DROPPED_VIDEO_FRAME_COUNT_TO_NOTIFY));
// }
//}
}
4 changes: 2 additions & 2 deletions smarttubetv/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ android {
applicationId "com.liskovsoft.smarttubetv"
minSdkVersion project.properties.minSdkVersion
targetSdkVersion project.properties.targetSdkVersion
versionCode 120
versionName "8.0"
versionCode 121
versionName "8.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField "long", "TIMESTAMP", System.currentTimeMillis() + "L"

Expand Down

0 comments on commit b8f419a

Please sign in to comment.