- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
61 lines
1.7 KiB
Java
61 lines
1.7 KiB
Java
package com.fyber.inneractive.sdk.player.exoplayer2;
|
|
|
|
import com.mbridge.msdk.playercommon.exoplayer2.DefaultLoadControl;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class c {
|
|
public final com.fyber.inneractive.sdk.player.exoplayer2.upstream.j a;
|
|
public final long b;
|
|
public final long c;
|
|
public final long d;
|
|
public final long e;
|
|
public int f;
|
|
public boolean g;
|
|
|
|
public c(com.fyber.inneractive.sdk.player.exoplayer2.upstream.j jVar, int i) {
|
|
this(jVar, (Object) null);
|
|
}
|
|
|
|
public final com.fyber.inneractive.sdk.player.exoplayer2.upstream.j a() {
|
|
return this.a;
|
|
}
|
|
|
|
public c(com.fyber.inneractive.sdk.player.exoplayer2.upstream.j jVar, Object obj) {
|
|
this.a = jVar;
|
|
this.b = DefaultLoadControl.DEFAULT_MIN_BUFFER_MS * 1000;
|
|
this.c = 30000 * 1000;
|
|
this.d = 2500000L;
|
|
this.e = 5000000L;
|
|
}
|
|
|
|
public final boolean a(long j) {
|
|
int i;
|
|
boolean z = false;
|
|
char c = j > this.c ? (char) 0 : j < this.b ? (char) 2 : (char) 1;
|
|
com.fyber.inneractive.sdk.player.exoplayer2.upstream.j jVar = this.a;
|
|
synchronized (jVar) {
|
|
i = jVar.f * jVar.b;
|
|
}
|
|
boolean z2 = i >= this.f;
|
|
boolean z3 = this.g;
|
|
if (c == 2 || (c == 1 && z3 && !z2)) {
|
|
z = true;
|
|
}
|
|
this.g = z;
|
|
return z;
|
|
}
|
|
|
|
public final void a(boolean z) {
|
|
this.f = 0;
|
|
this.g = false;
|
|
if (z) {
|
|
com.fyber.inneractive.sdk.player.exoplayer2.upstream.j jVar = this.a;
|
|
synchronized (jVar) {
|
|
if (jVar.a) {
|
|
jVar.a(0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|