- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
87 lines
2.9 KiB
Java
87 lines
2.9 KiB
Java
package com.fyber.inneractive.sdk.player.controller;
|
|
|
|
import android.graphics.SurfaceTexture;
|
|
import android.view.Surface;
|
|
import android.view.TextureView;
|
|
import com.fyber.inneractive.sdk.player.controller.i;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class f implements TextureView.SurfaceTextureListener {
|
|
public final /* synthetic */ i a;
|
|
|
|
public class a implements Runnable {
|
|
public a() {
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
i.f fVar = f.this.a.d;
|
|
if (fVar != null) {
|
|
((n) fVar).a.d.post(new m());
|
|
}
|
|
}
|
|
}
|
|
|
|
public f(i iVar) {
|
|
this.a = iVar;
|
|
}
|
|
|
|
@Override // android.view.TextureView.SurfaceTextureListener
|
|
public final void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i2) {
|
|
i iVar = this.a;
|
|
iVar.getClass();
|
|
IAlog.a("%sonSurfaceTextureAvailable", IAlog.a(iVar));
|
|
i.a(this.a, surfaceTexture);
|
|
i.f fVar = this.a.d;
|
|
if (fVar != null) {
|
|
o oVar = ((n) fVar).a;
|
|
oVar.getClass();
|
|
IAlog.a("%sonSurfaceTextureAvailable", IAlog.a(oVar));
|
|
}
|
|
}
|
|
|
|
@Override // android.view.TextureView.SurfaceTextureListener
|
|
public final boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) {
|
|
i iVar = this.a;
|
|
iVar.getClass();
|
|
IAlog.a("%s onSurfaceTextureDestroyed", IAlog.a(iVar));
|
|
this.a.k();
|
|
this.a.a((Surface) null);
|
|
i iVar2 = this.a;
|
|
iVar2.o = true;
|
|
com.fyber.inneractive.sdk.player.enums.b bVar = iVar2.e;
|
|
if (bVar == com.fyber.inneractive.sdk.player.enums.b.Completed || bVar == com.fyber.inneractive.sdk.player.enums.b.Error || bVar == com.fyber.inneractive.sdk.player.enums.b.Idle) {
|
|
IAlog.a("%sReleasing surface texture", IAlog.a(iVar2));
|
|
this.a.k = null;
|
|
return true;
|
|
}
|
|
IAlog.a("%s caching surface texture", IAlog.a(iVar2));
|
|
i iVar3 = this.a;
|
|
iVar3.k = surfaceTexture;
|
|
iVar3.i.post(new a());
|
|
return false;
|
|
}
|
|
|
|
@Override // android.view.TextureView.SurfaceTextureListener
|
|
public final void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int i, int i2) {
|
|
}
|
|
|
|
@Override // android.view.TextureView.SurfaceTextureListener
|
|
public final void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {
|
|
Surface surface;
|
|
com.fyber.inneractive.sdk.player.c cVar;
|
|
i iVar;
|
|
i.f fVar = this.a.d;
|
|
if (fVar != null && (cVar = ((n) fVar).a.a) != null && (iVar = cVar.b) != null) {
|
|
iVar.i.post(new j(iVar));
|
|
}
|
|
i iVar2 = this.a;
|
|
if (!iVar2.o || (surface = iVar2.l) == null) {
|
|
return;
|
|
}
|
|
iVar2.a(surface);
|
|
this.a.o = false;
|
|
}
|
|
}
|