Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
package com.mbridge.msdk.video.module.a;
/* loaded from: classes4.dex */
public interface a {
void a(int i, Object obj);
}

View File

@@ -0,0 +1,39 @@
package com.mbridge.msdk.video.module.a.a;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.text.TextUtils;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.af;
/* loaded from: classes4.dex */
public class a extends f {
private Activity a;
private CampaignEx b;
public a(Activity activity, CampaignEx campaignEx) {
this.a = activity;
this.b = campaignEx;
}
@Override // com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
public void a(int i, Object obj) {
super.a(i, obj);
if (i != 106 || this.a == null || this.b == null) {
return;
}
try {
Intent intent = new Intent();
intent.setAction("android.intent.action.VIEW");
String a = com.mbridge.msdk.click.c.a(this.b.getClickURL(), "-999", "-999");
if (!TextUtils.isEmpty(a)) {
intent.setData(Uri.parse(a));
this.a.startActivity(intent);
}
} catch (Throwable th) {
af.b("NotifyListener", th.getMessage(), th);
}
this.a.finish();
}
}

View File

@@ -0,0 +1,57 @@
package com.mbridge.msdk.video.module.a.a;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.video.module.MBridgeContainerView;
import com.mbridge.msdk.video.module.MBridgeVideoView;
/* loaded from: classes4.dex */
public final class b extends d {
private MBridgeVideoView k;
private MBridgeContainerView l;
public b(MBridgeVideoView mBridgeVideoView, MBridgeContainerView mBridgeContainerView, CampaignEx campaignEx, com.mbridge.msdk.videocommon.b.c cVar, com.mbridge.msdk.videocommon.download.a aVar, String str, String str2, com.mbridge.msdk.video.module.a.a aVar2, int i, boolean z) {
super(campaignEx, aVar, cVar, str, str2, aVar2, i, z);
this.k = mBridgeVideoView;
this.l = mBridgeContainerView;
if (mBridgeVideoView == null || mBridgeContainerView == null) {
this.a = false;
}
}
@Override // com.mbridge.msdk.video.module.a.a.d, com.mbridge.msdk.video.module.a.a.k, com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
public final void a(int i, Object obj) {
if (this.a) {
if (i == 8) {
MBridgeContainerView mBridgeContainerView = this.l;
if (mBridgeContainerView == null) {
MBridgeVideoView mBridgeVideoView = this.k;
if (mBridgeVideoView != null) {
mBridgeVideoView.showAlertView();
}
} else if (mBridgeContainerView.showAlertWebView()) {
MBridgeVideoView mBridgeVideoView2 = this.k;
if (mBridgeVideoView2 != null) {
mBridgeVideoView2.alertWebViewShowed();
}
} else {
MBridgeVideoView mBridgeVideoView3 = this.k;
if (mBridgeVideoView3 != null) {
mBridgeVideoView3.showAlertView();
}
}
} else if (i == 107) {
this.l.showVideoClickView(-1);
this.k.setCover(false);
this.k.setMiniEndCardState(false);
this.k.videoOperate(1);
} else if (i == 112) {
this.k.setCover(true);
this.k.setMiniEndCardState(true);
this.k.videoOperate(2);
} else if (i == 115) {
this.l.resizeMiniCard(this.k.getBorderViewWidth(), this.k.getBorderViewHeight(), this.k.getBorderViewRadius());
}
}
super.a(i, obj);
}
}

View File

@@ -0,0 +1,46 @@
package com.mbridge.msdk.video.module.a.a;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.video.signal.factory.IJSFactory;
/* loaded from: classes4.dex */
public final class c extends d {
private IJSFactory k;
public c(IJSFactory iJSFactory, CampaignEx campaignEx, com.mbridge.msdk.videocommon.b.c cVar, com.mbridge.msdk.videocommon.download.a aVar, String str, String str2, com.mbridge.msdk.video.module.a.a aVar2, int i, boolean z) {
super(campaignEx, aVar, cVar, str, str2, aVar2, i, z);
this.k = iJSFactory;
if (iJSFactory == null) {
this.a = false;
}
}
@Override // com.mbridge.msdk.video.module.a.a.d, com.mbridge.msdk.video.module.a.a.k, com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
public final void a(int i, Object obj) {
if (this.a) {
if (i != 8) {
if (i == 105) {
this.k.getJSNotifyProxy().a(3, obj.toString());
i = -1;
} else if (i == 107) {
this.k.getJSContainerModule().showVideoClickView(-1);
this.k.getJSVideoModule().setCover(false);
this.k.getJSVideoModule().setMiniEndCardState(false);
this.k.getJSVideoModule().videoOperate(1);
} else if (i == 112) {
this.k.getJSVideoModule().setCover(true);
this.k.getJSVideoModule().setMiniEndCardState(true);
this.k.getJSVideoModule().videoOperate(2);
} else if (i == 115) {
com.mbridge.msdk.video.signal.j jSVideoModule = this.k.getJSVideoModule();
this.k.getJSContainerModule().resizeMiniCard(jSVideoModule.getBorderViewWidth(), jSVideoModule.getBorderViewHeight(), jSVideoModule.getBorderViewRadius());
}
} else if (!this.k.getJSContainerModule().showAlertWebView()) {
this.k.getJSVideoModule().showAlertView();
} else {
this.k.getJSVideoModule().alertWebViewShowed();
}
}
super.a(i, obj);
}
}

View File

@@ -0,0 +1,58 @@
package com.mbridge.msdk.video.module.a.a;
import android.net.Uri;
import android.text.TextUtils;
import com.ironsource.v8;
import com.mbridge.msdk.foundation.entity.CampaignEx;
/* loaded from: classes4.dex */
public class d extends k {
public d(CampaignEx campaignEx, com.mbridge.msdk.videocommon.download.a aVar, com.mbridge.msdk.videocommon.b.c cVar, String str, String str2, com.mbridge.msdk.video.module.a.a aVar2, int i, boolean z) {
super(campaignEx, aVar, cVar, str, str2, aVar2, i, z);
}
@Override // com.mbridge.msdk.video.module.a.a.k, com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
public void a(int i, Object obj) {
super.a(i, obj);
if (this.a) {
try {
CampaignEx campaignEx = this.b;
if (campaignEx != null && campaignEx.getDynamicTempCode() == 5) {
b(obj.toString());
}
} catch (Exception unused) {
}
if (i != 105 && i != 106 && i != 113) {
if (i != 122) {
switch (i) {
case 109:
b(2);
a(2);
break;
case 110:
b(1);
a(1);
break;
case 111:
a(1);
break;
}
}
a();
return;
}
com.mbridge.msdk.video.module.b.b.d(com.mbridge.msdk.foundation.controller.c.m().c(), this.b);
if (i != 105) {
String noticeUrl = this.b.getNoticeUrl();
if (!TextUtils.isEmpty(noticeUrl)) {
if (!noticeUrl.contains(com.mbridge.msdk.foundation.same.a.m)) {
noticeUrl = noticeUrl + v8.i.c + com.mbridge.msdk.foundation.same.a.m + "=2";
} else {
noticeUrl = noticeUrl.replace(com.mbridge.msdk.foundation.same.a.m + v8.i.b + Uri.parse(noticeUrl).getQueryParameter(com.mbridge.msdk.foundation.same.a.m), com.mbridge.msdk.foundation.same.a.m + "=2");
}
}
com.mbridge.msdk.click.a.a(com.mbridge.msdk.foundation.controller.c.m().c(), this.b, this.g, noticeUrl, true, false, com.mbridge.msdk.click.a.a.i);
}
}
}
}

View File

@@ -0,0 +1,75 @@
package com.mbridge.msdk.video.module.a.a;
import android.graphics.Bitmap;
import android.widget.ImageView;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.ab;
import com.mbridge.msdk.foundation.tools.af;
/* loaded from: classes4.dex */
public class e implements com.mbridge.msdk.foundation.same.c.c {
private CampaignEx a;
protected ImageView b;
private String c;
public e(ImageView imageView) {
this.b = imageView;
}
public e(ImageView imageView, CampaignEx campaignEx, String str) {
this.b = imageView;
this.a = campaignEx;
this.c = str;
}
@Override // com.mbridge.msdk.foundation.same.c.c
public void onSuccessLoad(Bitmap bitmap, String str) {
try {
if (bitmap == null) {
af.b("ImageLoaderListener", "bitmap=null");
} else {
if (this.b == null || bitmap.isRecycled()) {
return;
}
this.b.setImageBitmap(bitmap);
this.b.setVisibility(0);
}
} catch (Throwable th) {
if (MBridgeConstans.DEBUG) {
th.printStackTrace();
}
}
}
@Override // com.mbridge.msdk.foundation.same.c.c
public void onFailedLoad(final String str, String str2) {
Runnable runnable = new Runnable() { // from class: com.mbridge.msdk.video.module.a.a.e.1
@Override // java.lang.Runnable
public final void run() {
try {
com.mbridge.msdk.foundation.db.o a = com.mbridge.msdk.foundation.db.o.a(com.mbridge.msdk.foundation.db.g.a(com.mbridge.msdk.foundation.controller.c.m().c()));
if (e.this.a == null) {
af.a("ImageLoaderListener", "campaign is null");
return;
}
com.mbridge.msdk.foundation.entity.n nVar = new com.mbridge.msdk.foundation.entity.n();
nVar.a("2000044");
nVar.a(ab.m(com.mbridge.msdk.foundation.controller.c.m().c()));
nVar.e(e.this.a.getId());
nVar.p(e.this.a.getImageUrl());
nVar.f(e.this.a.getRequestId());
nVar.g(e.this.a.getRequestIdNotice());
nVar.c(e.this.c);
nVar.h(str);
a.a(nVar);
} catch (Exception e) {
e.printStackTrace();
}
}
};
com.mbridge.msdk.foundation.controller.d.a();
com.mbridge.msdk.foundation.same.f.a.b().execute(runnable);
af.b("ImageLoaderListener", "desc:" + str);
}
}

View File

@@ -0,0 +1,11 @@
package com.mbridge.msdk.video.module.a.a;
import com.mbridge.msdk.foundation.tools.af;
/* loaded from: classes4.dex */
public class f implements com.mbridge.msdk.video.module.a.a {
@Override // com.mbridge.msdk.video.module.a.a
public void a(int i, Object obj) {
af.b("NotifyListener", "onNotify,type=" + i + ",pt=" + obj);
}
}

View File

@@ -0,0 +1,43 @@
package com.mbridge.msdk.video.module.a.a;
import androidx.annotation.RequiresApi;
import com.mbridge.msdk.video.module.MBridgeClickMiniCardView;
import com.vungle.ads.internal.signals.SignalKey;
/* loaded from: classes4.dex */
public final class g extends i {
private MBridgeClickMiniCardView a;
public g(MBridgeClickMiniCardView mBridgeClickMiniCardView, com.mbridge.msdk.video.module.a.a aVar) {
super(aVar);
this.a = mBridgeClickMiniCardView;
}
@Override // com.mbridge.msdk.video.module.a.a.i, com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
@RequiresApi(api = 11)
public final void a(int i, Object obj) {
boolean z = false;
switch (i) {
case 100:
MBridgeClickMiniCardView mBridgeClickMiniCardView = this.a;
if (mBridgeClickMiniCardView != null) {
mBridgeClickMiniCardView.webviewshow();
MBridgeClickMiniCardView mBridgeClickMiniCardView2 = this.a;
mBridgeClickMiniCardView2.onSelfConfigurationChanged(mBridgeClickMiniCardView2.getResources().getConfiguration());
break;
}
break;
case 101:
case 102:
z = true;
break;
case 103:
i = SignalKey.EVENT_ID;
break;
}
if (z) {
return;
}
super.a(i, obj);
}
}

View File

@@ -0,0 +1,46 @@
package com.mbridge.msdk.video.module.a.a;
import com.mbridge.msdk.foundation.entity.CampaignEx;
/* loaded from: classes4.dex */
public final class h extends k {
public h(CampaignEx campaignEx, com.mbridge.msdk.videocommon.download.a aVar, com.mbridge.msdk.videocommon.b.c cVar, String str, String str2, com.mbridge.msdk.video.module.a.a aVar2, int i, boolean z) {
super(campaignEx, aVar, cVar, str, str2, aVar2, i, z);
}
@Override // com.mbridge.msdk.video.module.a.a.k, com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
public final void a(int i, Object obj) {
if (i == 100) {
g();
f();
e();
a(2);
} else if (i == 109) {
b(2);
} else if (i == 122) {
a();
} else if (i != 129) {
String str = "";
if (i == 118) {
if (obj != null && (obj instanceof String)) {
str = (String) obj;
}
a(3, str);
} else if (i == 119) {
if (obj != null && (obj instanceof String)) {
str = (String) obj;
}
a(4, str);
}
} else {
CampaignEx campaignEx = this.b;
if (campaignEx != null && campaignEx.getPlayable_ads_without_video() == 2) {
g();
f();
e();
a(1);
}
}
super.a(i, obj);
}
}

View File

@@ -0,0 +1,19 @@
package com.mbridge.msdk.video.module.a.a;
/* loaded from: classes4.dex */
public class i extends f {
protected com.mbridge.msdk.video.module.a.a b;
public i(com.mbridge.msdk.video.module.a.a aVar) {
this.b = aVar;
}
@Override // com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
public void a(int i, Object obj) {
super.a(i, obj);
com.mbridge.msdk.video.module.a.a aVar = this.b;
if (aVar != null) {
aVar.a(i, obj);
}
}
}

View File

@@ -0,0 +1,34 @@
package com.mbridge.msdk.video.module.a.a;
import android.graphics.Bitmap;
import android.widget.ImageView;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.tools.ae;
/* loaded from: classes4.dex */
public final class j extends e {
private int a;
public j(ImageView imageView, int i) {
super(imageView);
this.a = i;
}
@Override // com.mbridge.msdk.video.module.a.a.e, com.mbridge.msdk.foundation.same.c.c
public final void onSuccessLoad(Bitmap bitmap, String str) {
Bitmap a;
if (bitmap == null) {
return;
}
try {
if (this.b == null || bitmap.isRecycled() || (a = ae.a(bitmap, 1, this.a)) == null) {
return;
}
this.b.setImageBitmap(a);
} catch (Throwable th) {
if (MBridgeConstans.DEBUG) {
th.printStackTrace();
}
}
}
}

View File

@@ -0,0 +1,347 @@
package com.mbridge.msdk.video.module.a.a;
import android.content.Context;
import android.text.TextUtils;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.ab;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.ap;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class k extends f {
protected boolean a;
protected CampaignEx b;
protected List<CampaignEx> c;
protected boolean d;
protected com.mbridge.msdk.videocommon.download.a e;
protected com.mbridge.msdk.videocommon.b.c f;
protected String g;
protected String h;
protected com.mbridge.msdk.video.module.a.a i;
protected int j;
private boolean k = false;
private boolean l = false;
private boolean m = false;
public final void a(CampaignEx campaignEx) {
this.b = campaignEx;
}
public final void a(List<CampaignEx> list) {
this.c = list;
}
public k(CampaignEx campaignEx, com.mbridge.msdk.videocommon.download.a aVar, com.mbridge.msdk.videocommon.b.c cVar, String str, String str2, com.mbridge.msdk.video.module.a.a aVar2, int i, boolean z) {
this.d = false;
this.i = new f();
this.j = 1;
if (!z && campaignEx != null && ap.b(str2) && aVar != null && aVar2 != null) {
this.b = campaignEx;
this.h = str;
this.g = str2;
this.e = aVar;
this.f = cVar;
this.i = aVar2;
this.a = true;
this.j = i;
this.d = false;
return;
}
if (!z || campaignEx == null || !ap.b(str2) || aVar2 == null) {
return;
}
this.b = campaignEx;
this.h = str;
this.g = str2;
this.e = aVar;
this.f = cVar;
this.i = aVar2;
this.a = true;
this.j = i;
this.d = true;
}
@Override // com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
public void a(int i, Object obj) {
super.a(i, obj);
this.i.a(i, obj);
}
public final void a(int i) {
if (this.b != null) {
if (i == 1 || i == 2) {
com.mbridge.msdk.video.module.b.b.a(com.mbridge.msdk.foundation.controller.c.m().c(), this.b, i, this.j);
}
}
}
public final void a() {
if (!this.a || this.b == null) {
return;
}
com.mbridge.msdk.foundation.entity.n nVar = new com.mbridge.msdk.foundation.entity.n("2000061", this.b.getId(), this.b.getRequestId(), this.b.getRequestIdNotice(), this.g, ab.m(com.mbridge.msdk.foundation.controller.c.m().c()));
nVar.d(this.b.isMraid() ? com.mbridge.msdk.foundation.entity.n.a : com.mbridge.msdk.foundation.entity.n.b);
com.mbridge.msdk.foundation.same.report.g.b(nVar, com.mbridge.msdk.foundation.controller.c.m().c(), this.g);
}
public final void a(int i, String str) {
if (this.b != null) {
com.mbridge.msdk.foundation.same.report.g.c(new com.mbridge.msdk.foundation.entity.n("2000062", this.b.getId(), this.b.getRequestId(), this.b.getRequestIdNotice(), this.g, ab.m(com.mbridge.msdk.foundation.controller.c.m().c()), i, str), com.mbridge.msdk.foundation.controller.c.m().c(), this.g);
}
}
public final void b(int i) {
CampaignEx campaignEx = this.b;
if (campaignEx != null) {
String noticeUrl = campaignEx.getNoticeUrl();
if (TextUtils.isEmpty(noticeUrl)) {
return;
}
if (i == 1 || i == 2) {
if (!noticeUrl.contains("endscreen_type")) {
StringBuilder sb = new StringBuilder(noticeUrl);
if (noticeUrl.contains("?")) {
sb.append("&endscreen_type=");
sb.append(i);
} else {
sb.append("?endscreen_type=");
sb.append(i);
}
noticeUrl = sb.toString();
} else if (i == 2) {
if (noticeUrl.contains("endscreen_type=1")) {
noticeUrl = noticeUrl.replace("endscreen_type=1", "endscreen_type=2");
}
} else if (noticeUrl.contains("endscreen_type=2")) {
noticeUrl = noticeUrl.replace("endscreen_type=2", "endscreen_type=1");
}
this.b.setNoticeUrl(noticeUrl);
}
}
}
public final void b() {
Runnable runnable = new Runnable() { // from class: com.mbridge.msdk.video.module.a.a.k.1
@Override // java.lang.Runnable
public final void run() {
try {
k kVar = k.this;
if (!kVar.a || kVar.b == null || !ap.b(kVar.g) || com.mbridge.msdk.foundation.controller.c.m().c() == null) {
return;
}
com.mbridge.msdk.foundation.db.i a = com.mbridge.msdk.foundation.db.i.a(com.mbridge.msdk.foundation.db.g.a(com.mbridge.msdk.foundation.controller.c.m().c()));
com.mbridge.msdk.foundation.entity.f fVar = new com.mbridge.msdk.foundation.entity.f();
fVar.a(System.currentTimeMillis());
fVar.b(k.this.g);
fVar.a(k.this.b.getId());
a.a(fVar);
} catch (Throwable th) {
af.b("NotifyListener", th.getMessage(), th);
}
}
};
com.mbridge.msdk.foundation.controller.d.a();
com.mbridge.msdk.foundation.same.f.a.b().execute(runnable);
}
public final void c() {
try {
Runnable runnable = new Runnable() { // from class: com.mbridge.msdk.video.module.a.a.k.2
@Override // java.lang.Runnable
public final void run() {
try {
k kVar = k.this;
if (kVar.a && kVar.b != null && ap.b(kVar.g)) {
com.mbridge.msdk.videocommon.a.a a = com.mbridge.msdk.videocommon.a.a.a();
k kVar2 = k.this;
a.a(kVar2.b, kVar2.g);
}
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
e.printStackTrace();
}
}
try {
com.mbridge.msdk.videocommon.a.a a2 = com.mbridge.msdk.videocommon.a.a.a();
k kVar3 = k.this;
a2.c(kVar3.h, kVar3.b.getAdType());
} catch (Exception e2) {
if (MBridgeConstans.DEBUG) {
e2.printStackTrace();
}
} catch (Throwable th) {
af.a("NotifyListener", th.getMessage());
}
}
};
com.mbridge.msdk.foundation.controller.d.a();
com.mbridge.msdk.foundation.same.f.a.b().execute(runnable);
} catch (Throwable th) {
af.b("NotifyListener", th.getMessage(), th);
}
}
public final void d() {
com.mbridge.msdk.videocommon.download.a aVar = this.e;
if (aVar != null) {
aVar.f(true);
}
}
public final void e() {
CampaignEx campaignEx;
Map<String, Long> map;
String str;
try {
CampaignEx campaignEx2 = this.b;
if (campaignEx2 != null && campaignEx2.isDynamicView() && this.d && !this.b.isCampaignIsFiltered()) {
this.l = true;
return;
}
if (!this.a || (campaignEx = this.b) == null || TextUtils.isEmpty(campaignEx.getOnlyImpressionURL()) || (map = com.mbridge.msdk.foundation.same.a.b.k) == null || map.containsKey(this.b.getOnlyImpressionURL()) || this.l) {
return;
}
com.mbridge.msdk.foundation.same.a.b.k.put(this.b.getOnlyImpressionURL(), Long.valueOf(System.currentTimeMillis()));
String onlyImpressionURL = this.b.getOnlyImpressionURL();
if (this.b.getSpareOfferFlag() == 1) {
str = onlyImpressionURL + "&to=1&cbt=" + this.b.getCbt() + "&tmorl=" + this.j;
} else {
str = onlyImpressionURL + "&to=0&cbt=" + this.b.getCbt() + "&tmorl=" + this.j;
}
String str2 = str;
if (!this.d || this.b.isCampaignIsFiltered()) {
com.mbridge.msdk.click.a.a(com.mbridge.msdk.foundation.controller.c.m().c(), this.b, this.g, str2, false, true, com.mbridge.msdk.click.a.a.h);
c();
}
this.l = true;
} catch (Exception e) {
e.printStackTrace();
}
}
public final void f() {
try {
if (!this.a || this.k || TextUtils.isEmpty(this.b.getImpressionURL())) {
return;
}
this.k = true;
if (this.b.isBidCampaign() && this.b != null) {
try {
HashMap hashMap = new HashMap();
List<com.mbridge.msdk.foundation.entity.d> a = com.mbridge.msdk.foundation.db.b.a(com.mbridge.msdk.foundation.controller.c.m().c()).a(this.b.getCampaignUnitId(), this.b.getRequestId());
if (a != null && a.size() > 0 && a.get(0) != null) {
if (a.get(0).c() == 1) {
hashMap.put("encrypt_p=", "encrypt_p=" + a.get(0).b());
hashMap.put("irlfa=", "irlfa=1");
for (Map.Entry entry : hashMap.entrySet()) {
String str = (String) entry.getKey();
String str2 = (String) entry.getValue();
CampaignEx campaignEx = this.b;
campaignEx.setImpressionURL(campaignEx.getImpressionURL().replaceAll(str, str2));
CampaignEx campaignEx2 = this.b;
campaignEx2.setOnlyImpressionURL(campaignEx2.getOnlyImpressionURL().replaceAll(str, str2));
}
}
af.a("BidReplaceCampignDao", "removeReplace count " + com.mbridge.msdk.foundation.db.b.a(com.mbridge.msdk.foundation.controller.c.m().c()).a(this.b.getRequestId()));
}
} catch (Exception e) {
e.printStackTrace();
}
}
String impressionURL = this.b.getImpressionURL();
com.mbridge.msdk.click.a.a(com.mbridge.msdk.foundation.controller.c.m().c(), this.b, this.g, this.b.getSpareOfferFlag() == 1 ? impressionURL + "&to=1&cbt=" + this.b.getCbt() + "&tmorl=" + this.j : impressionURL + "&to=0&cbt=" + this.b.getCbt() + "&tmorl=" + this.j, false, true, com.mbridge.msdk.click.a.a.g);
com.mbridge.msdk.video.module.b.b.a(com.mbridge.msdk.foundation.controller.c.m().c(), this.b);
new Thread(new Runnable() { // from class: com.mbridge.msdk.video.module.a.a.k.3
@Override // java.lang.Runnable
public final void run() {
try {
com.mbridge.msdk.foundation.db.j.a(com.mbridge.msdk.foundation.db.g.a(com.mbridge.msdk.foundation.controller.c.m().c())).a(k.this.b.getId());
} catch (Throwable th) {
af.b("NotifyListener", th.getMessage(), th);
}
}
}).start();
if (!this.a || com.mbridge.msdk.foundation.same.a.b.j == null || TextUtils.isEmpty(this.b.getId())) {
return;
}
com.mbridge.msdk.foundation.same.a.b.a(this.g, this.b, "reward");
} catch (Throwable th) {
af.b("NotifyListener", th.getMessage(), th);
}
}
public final void g() {
CampaignEx campaignEx;
List<String> pv_urls;
try {
if (!this.a || this.m || (campaignEx = this.b) == null) {
return;
}
this.m = true;
if ((campaignEx.isDynamicView() && this.d && !this.b.isCampaignIsFiltered()) || (pv_urls = this.b.getPv_urls()) == null || pv_urls.size() <= 0) {
return;
}
Iterator<String> it = pv_urls.iterator();
while (it.hasNext()) {
com.mbridge.msdk.click.a.a(com.mbridge.msdk.foundation.controller.c.m().c(), this.b, this.g, it.next(), false, true);
}
} catch (Throwable th) {
af.b("NotifyListener", th.getMessage());
}
}
public final void h() {
CampaignEx campaignEx = this.b;
if (campaignEx == null || TextUtils.isEmpty(campaignEx.getCampaignUnitId()) || this.b.getNativeVideoTracking() == null || this.b.getNativeVideoTracking().o() == null) {
return;
}
Context c = com.mbridge.msdk.foundation.controller.c.m().c();
CampaignEx campaignEx2 = this.b;
com.mbridge.msdk.click.a.a(c, campaignEx2, campaignEx2.getCampaignUnitId(), this.b.getNativeVideoTracking().o(), false, false);
}
public final void a(String str) {
try {
if (this.b != null) {
com.mbridge.msdk.foundation.same.report.d.e eVar = new com.mbridge.msdk.foundation.same.report.d.e();
eVar.a("url", this.b.getVideoUrlEncode());
eVar.a("reason", str);
String noticeUrl = this.b.getNoticeUrl();
String clickURL = this.b.getClickURL();
if (TextUtils.isEmpty(noticeUrl)) {
if (!TextUtils.isEmpty(clickURL)) {
eVar.a("offer_url", clickURL);
}
} else {
eVar.a("offer_url", noticeUrl);
}
com.mbridge.msdk.foundation.same.report.d.d.a().a("2000021", this.b, eVar);
}
} catch (Exception e) {
e.printStackTrace();
}
}
public final void b(String str) {
List<CampaignEx> list;
if (this.b == null || (list = this.c) == null || list.size() == 0 || TextUtils.isEmpty(str)) {
return;
}
try {
JSONObject jSONObject = new JSONObject(str);
if (jSONObject.has("camp_position")) {
this.b = this.c.get(jSONObject.getInt("camp_position"));
}
} catch (Exception e) {
if (MBridgeConstans.DEBUG) {
af.b("NotifyListener", e.getMessage());
}
}
}
}

View File

@@ -0,0 +1,13 @@
package com.mbridge.msdk.video.module.a.a;
/* loaded from: classes4.dex */
public final class l extends i {
public l(com.mbridge.msdk.video.module.a.a aVar) {
super(aVar);
}
@Override // com.mbridge.msdk.video.module.a.a.i, com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
public final void a(int i, Object obj) {
super.a(i, obj);
}
}

View File

@@ -0,0 +1,381 @@
package com.mbridge.msdk.video.module.a.a;
import android.os.Handler;
import android.text.TextUtils;
import android.widget.FrameLayout;
import android.widget.TextView;
import com.mbridge.msdk.MBridgeConstans;
import com.mbridge.msdk.dycreator.baseview.cusview.SoundImageView;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.ah;
import com.mbridge.msdk.foundation.tools.ak;
import com.mbridge.msdk.video.module.MBridgeContainerView;
import com.mbridge.msdk.video.module.MBridgeVideoView;
import java.util.Timer;
import java.util.TimerTask;
/* loaded from: classes4.dex */
public final class m extends o {
private MBridgeVideoView l;
private MBridgeContainerView m;
private int n;
private Timer o;
private Handler p;
private boolean q;
private boolean r;
private boolean s;
private int t;
private int u;
private MBridgeVideoView.a v;
public m(MBridgeVideoView mBridgeVideoView, MBridgeContainerView mBridgeContainerView, CampaignEx campaignEx, com.mbridge.msdk.videocommon.b.c cVar, com.mbridge.msdk.videocommon.download.a aVar, String str, String str2, int i, int i2, com.mbridge.msdk.video.module.a.a aVar2, int i3, boolean z, int i4) {
super(campaignEx, cVar, aVar, str, str2, aVar2, i3, z);
this.p = new Handler();
this.q = false;
this.r = false;
this.s = false;
this.l = mBridgeVideoView;
this.m = mBridgeContainerView;
this.u = i;
this.n = i2;
this.t = i4;
if (mBridgeVideoView != null) {
this.q = mBridgeVideoView.getVideoSkipTime() == 0;
}
if (mBridgeVideoView == null || mBridgeContainerView == null) {
this.a = false;
}
}
@Override // com.mbridge.msdk.video.module.a.a.o, com.mbridge.msdk.video.module.a.a.k, com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
public final void a(int i, Object obj) {
Integer num;
int i2;
CampaignEx campaignEx;
if (this.a) {
if (i == 1) {
if (!this.m.endCardShowing()) {
int videoInteractiveType = this.m.getVideoInteractiveType();
if (videoInteractiveType != -2) {
if (videoInteractiveType == -1) {
if (this.m.isLast()) {
this.m.showVideoClickView(1);
this.l.soundOperate(0, 1);
try {
i();
this.o = new Timer();
this.o.schedule(new TimerTask() { // from class: com.mbridge.msdk.video.module.a.a.m.1
@Override // java.util.TimerTask, java.lang.Runnable
public final void run() {
try {
m.this.p.post(new Runnable() { // from class: com.mbridge.msdk.video.module.a.a.m.1.1
@Override // java.lang.Runnable
public final void run() {
m.this.m.showVideoClickView(-1);
m.this.l.soundOperate(0, 2);
}
});
} catch (Throwable th) {
if (MBridgeConstans.DEBUG) {
th.printStackTrace();
}
}
}
}, 3000L);
} catch (Exception e) {
e.printStackTrace();
}
} else {
this.m.showVideoClickView(-1);
this.l.soundOperate(0, 2);
i();
}
}
} else if (this.m.miniCardLoaded()) {
this.m.showVideoClickView(2);
}
}
} else {
if (i != 2) {
if (i != 5) {
if (i != 6) {
if (i == 8) {
MBridgeContainerView mBridgeContainerView = this.m;
if (mBridgeContainerView == null) {
MBridgeVideoView mBridgeVideoView = this.l;
if (mBridgeVideoView != null) {
mBridgeVideoView.showAlertView();
}
} else if (mBridgeContainerView.showAlertWebView()) {
MBridgeVideoView mBridgeVideoView2 = this.l;
if (mBridgeVideoView2 != null) {
mBridgeVideoView2.alertWebViewShowed();
}
} else {
MBridgeVideoView mBridgeVideoView3 = this.l;
if (mBridgeVideoView3 != null) {
mBridgeVideoView3.showAlertView();
}
}
} else if (i == 20) {
if (ah.a().a("i_l_s_t_r_i", false) && (obj instanceof MBridgeVideoView.a)) {
this.v = (MBridgeVideoView.a) obj;
}
} else {
switch (i) {
case 10:
this.r = true;
this.l.soundOperate(0, 2);
this.l.progressOperate(0, 2);
break;
case 11:
this.l.videoOperate(3);
this.l.dismissAllAlert();
CampaignEx campaignEx2 = this.b;
if (campaignEx2 != null && campaignEx2.getVideo_end_type() != 3 && this.b.getRewardTemplateMode() != null && this.b.getRewardTemplateMode().f() != 5002010) {
if (this.b.getAdSpaceT() != 2) {
this.l.setVisibility(8);
}
} else {
this.l.setVisibility(0);
}
CampaignEx campaignEx3 = this.b;
if (campaignEx3 != null && campaignEx3.getDynamicTempCode() == 5) {
MBridgeVideoView mBridgeVideoView4 = this.l;
if (mBridgeVideoView4.mCurrPlayNum == mBridgeVideoView4.mCampaignSize) {
MBridgeContainerView mBridgeContainerView2 = this.m;
if (mBridgeContainerView2 != null) {
mBridgeContainerView2.setRewardStatus(true);
this.m.showOrderCampView();
break;
}
}
}
CampaignEx campaignEx4 = this.b;
if (campaignEx4 == null || campaignEx4.getRewardTemplateMode() == null || this.b.getRewardTemplateMode().f() != 5002010) {
if (this.b.getAdSpaceT() == 2) {
this.m.showVideoEndCover();
break;
} else {
this.m.showEndcard(this.b.getVideo_end_type());
break;
}
}
break;
case 12:
h();
this.l.videoOperate(3);
this.l.dismissAllAlert();
if (this.b.getVideo_end_type() != 3) {
this.l.setVisibility(8);
} else {
this.l.setVisibility(0);
}
if (this.r || this.t != 0) {
if (this.b.isDynamicView() && this.b.getDynamicTempCode() == 5 && TextUtils.isEmpty(this.b.getendcard_url())) {
j();
this.t = 0;
}
if (!this.r && this.t == 1) {
g();
f();
e();
if (ah.a().a("i_l_s_t_r_i", false) && !this.s) {
this.s = true;
MBridgeVideoView.a aVar = this.v;
if (aVar != null) {
aVar.a();
}
}
}
if (this.b.getAdSpaceT() != 2) {
this.m.showEndcard(this.b.getVideo_end_type());
break;
} else {
this.m.showVideoEndCover();
break;
}
}
break;
case 13:
this.l.closeVideoOperate(0, 2);
break;
case 14:
if (!this.q) {
this.l.closeVideoOperate(0, 1);
break;
}
break;
case 15:
if (obj != null && (obj instanceof MBridgeVideoView.b)) {
MBridgeVideoView.b bVar = (MBridgeVideoView.b) obj;
int videoInteractiveType2 = this.m.getVideoInteractiveType();
if (this.b.getAdSpaceT() == 2) {
SoundImageView soundImageView = this.l.mSoundImageView;
if (soundImageView != null && (soundImageView.getLayoutParams() instanceof FrameLayout.LayoutParams)) {
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) this.l.mSoundImageView.getLayoutParams();
layoutParams.setMargins(ak.a(com.mbridge.msdk.foundation.controller.c.m().c(), 5.0f), 0, 0, ak.a(com.mbridge.msdk.foundation.controller.c.m().c(), 85.0f));
this.l.mSoundImageView.setLayoutParams(layoutParams);
}
TextView textView = this.l.tvFlag;
if (textView != null && (textView.getLayoutParams() instanceof FrameLayout.LayoutParams)) {
FrameLayout.LayoutParams layoutParams2 = (FrameLayout.LayoutParams) this.l.tvFlag.getLayoutParams();
layoutParams2.setMargins(ak.a(com.mbridge.msdk.foundation.controller.c.m().c(), 5.0f), 0, 0, ak.a(com.mbridge.msdk.foundation.controller.c.m().c(), 85.0f));
this.l.tvFlag.setVisibility(0);
this.l.tvFlag.setLayoutParams(layoutParams2);
}
this.m.showVideoClickView(1);
} else if (videoInteractiveType2 >= 0 && bVar.a >= videoInteractiveType2) {
this.m.showVideoClickView(1);
this.l.soundOperate(0, 1);
}
this.q = bVar.c;
if (this.b.getDynamicTempCode() != 5) {
int i3 = this.n;
if (((i3 >= 0 && ((i2 = bVar.a) >= i3 || i2 == bVar.b)) || (this.b.getVideoCompleteTime() > 0 && (bVar.a > this.b.getVideoCompleteTime() || bVar.a == bVar.b))) && !this.q) {
this.l.closeVideoOperate(0, 2);
this.q = true;
break;
}
} else {
int i4 = bVar.a;
int i5 = bVar.b;
if (!this.q && this.l != null && (campaignEx = this.b) != null) {
int i6 = this.n;
int i7 = (i6 < 0 || i4 < i6) ? 1 : 2;
if (i7 != 2 && (campaignEx.getVideoCompleteTime() != 0 ? i4 > this.b.getVideoCompleteTime() : this.l.mCurrPlayNum > 1)) {
i7 = 2;
}
if (i7 != 2 && this.l.mCurrPlayNum > 1 && i4 == i5) {
i7 = 2;
}
if (i7 == 2) {
this.l.closeVideoOperate(0, i7);
this.q = true;
break;
}
}
}
}
break;
}
}
}
} else if (obj != null && (obj instanceof Integer)) {
if (((Integer) obj).intValue() == 1) {
num = 2;
} else {
num = 1;
}
this.l.soundOperate(num.intValue(), -1);
}
}
this.l.dismissAllAlert();
this.l.videoOperate(3);
CampaignEx campaignEx5 = this.b;
if (campaignEx5 != null && campaignEx5.isDynamicView() && this.b.getDynamicTempCode() == 5) {
if (this.m != null) {
MBridgeVideoView mBridgeVideoView5 = this.l;
if (mBridgeVideoView5.mCurrPlayNum == mBridgeVideoView5.mCampaignSize) {
if (this.b.getAdSpaceT() != 2) {
this.m.setRewardStatus(true);
this.m.showOrderCampView();
}
i = 16;
}
}
com.mbridge.msdk.video.bt.module.b.f.a(this.b, this.g, this.l.mCurrentPlayProgressTime);
}
if (this.u == 2 && !this.m.endCardShowing() && this.b.getAdSpaceT() != 2) {
this.m.showEndcard(this.b.getVideo_end_type());
}
i = 16;
}
}
super.a(i, obj);
}
private void i() {
try {
Timer timer = this.o;
if (timer != null) {
timer.cancel();
this.o = null;
}
} catch (Exception e) {
e.printStackTrace();
}
}
/* JADX WARN: Removed duplicated region for block: B:23:0x005f */
/* JADX WARN: Removed duplicated region for block: B:32:? A[RETURN, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private void j() {
/*
r4 = this;
com.mbridge.msdk.foundation.entity.CampaignEx r0 = r4.b
if (r0 == 0) goto L70
int r0 = r0.getDynamicTempCode()
r1 = 5
if (r0 != r1) goto L70
com.mbridge.msdk.video.module.MBridgeVideoView r0 = r4.l
if (r0 == 0) goto L5c
java.util.List<com.mbridge.msdk.foundation.entity.CampaignEx> r0 = r0.mCampOrderViewData
if (r0 == 0) goto L5c
r0 = 0
r1 = r0
L15:
com.mbridge.msdk.video.module.MBridgeVideoView r2 = r4.l
java.util.List<com.mbridge.msdk.foundation.entity.CampaignEx> r2 = r2.mCampOrderViewData
int r2 = r2.size()
if (r1 >= r2) goto L45
com.mbridge.msdk.video.module.MBridgeVideoView r2 = r4.l
java.util.List<com.mbridge.msdk.foundation.entity.CampaignEx> r2 = r2.mCampOrderViewData
java.lang.Object r2 = r2.get(r1)
if (r2 == 0) goto L42
com.mbridge.msdk.video.module.MBridgeVideoView r2 = r4.l
java.util.List<com.mbridge.msdk.foundation.entity.CampaignEx> r2 = r2.mCampOrderViewData
java.lang.Object r2 = r2.get(r1)
com.mbridge.msdk.foundation.entity.CampaignEx r2 = (com.mbridge.msdk.foundation.entity.CampaignEx) r2
java.lang.String r2 = r2.getId()
com.mbridge.msdk.foundation.entity.CampaignEx r3 = r4.b
java.lang.String r3 = r3.getId()
if (r2 != r3) goto L42
int r0 = r1 + (-1)
goto L45
L42:
int r1 = r1 + 1
goto L15
L45:
if (r0 < 0) goto L5c
com.mbridge.msdk.video.module.MBridgeVideoView r1 = r4.l
java.util.List<com.mbridge.msdk.foundation.entity.CampaignEx> r1 = r1.mCampOrderViewData
java.lang.Object r1 = r1.get(r0)
if (r1 == 0) goto L5c
com.mbridge.msdk.video.module.MBridgeVideoView r1 = r4.l
java.util.List<com.mbridge.msdk.foundation.entity.CampaignEx> r1 = r1.mCampOrderViewData
java.lang.Object r0 = r1.get(r0)
com.mbridge.msdk.foundation.entity.CampaignEx r0 = (com.mbridge.msdk.foundation.entity.CampaignEx) r0
goto L5d
L5c:
r0 = 0
L5d:
if (r0 == 0) goto L70
com.mbridge.msdk.video.module.MBridgeVideoView r1 = r4.l
if (r1 == 0) goto L66
r1.setCampaign(r0)
L66:
com.mbridge.msdk.video.module.MBridgeContainerView r1 = r4.m
if (r1 == 0) goto L6d
r1.setCampaign(r0)
L6d:
r4.a(r0)
L70:
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.mbridge.msdk.video.module.a.a.m.j():void");
}
}

View File

@@ -0,0 +1,185 @@
package com.mbridge.msdk.video.module.a.a;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.ah;
import com.mbridge.msdk.video.module.MBridgeVideoView;
import com.mbridge.msdk.video.signal.factory.IJSFactory;
/* loaded from: classes4.dex */
public final class n extends o {
private IJSFactory l;
private int m;
private boolean n;
private boolean o;
private int p;
private boolean q;
private MBridgeVideoView.a r;
public n(IJSFactory iJSFactory, CampaignEx campaignEx, com.mbridge.msdk.videocommon.b.c cVar, com.mbridge.msdk.videocommon.download.a aVar, String str, String str2, int i, int i2, com.mbridge.msdk.video.module.a.a aVar2, int i3, boolean z, int i4) {
super(campaignEx, cVar, aVar, str, str2, aVar2, i3, z);
this.n = false;
this.o = false;
this.q = false;
this.l = iJSFactory;
this.m = i;
this.n = i2 == 0;
this.p = i4;
if (iJSFactory == null) {
this.a = false;
}
}
@Override // com.mbridge.msdk.video.module.a.a.o, com.mbridge.msdk.video.module.a.a.k, com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
public final void a(int i, Object obj) {
Integer num;
int i2;
int i3 = i;
if (this.a) {
if (i3 == 1) {
if (!this.l.getJSContainerModule().endCardShowing()) {
this.l.getJSNotifyProxy().a(1, obj != null ? obj.toString() : "");
}
} else {
if (i3 != 2) {
if (i3 != 5) {
if (i3 != 6) {
if (i3 != 8) {
if (i3 != 20) {
if (i3 != 114) {
if (i3 != 116) {
switch (i3) {
case 10:
this.q = true;
this.l.getJSNotifyProxy().a(0);
break;
case 11:
case 12:
this.l.getJSVideoModule().videoOperate(3);
if (this.b.getVideo_end_type() != 3) {
if (this.b.getAdSpaceT() != 2) {
this.l.getJSVideoModule().setVisible(8);
}
} else {
this.l.getJSVideoModule().setVisible(0);
}
if (i3 == 12) {
h();
i2 = 2;
} else {
i2 = 1;
}
this.l.getJSNotifyProxy().a(i2);
if (this.l.getJSCommon().g() == 2) {
this.l.getJSVideoModule().setVisible(0);
com.mbridge.msdk.video.signal.j jSVideoModule = this.l.getJSVideoModule();
this.l.getJSContainerModule().showMiniCard(jSVideoModule.getBorderViewTop(), jSVideoModule.getBorderViewLeft(), jSVideoModule.getBorderViewWidth(), jSVideoModule.getBorderViewHeight(), jSVideoModule.getBorderViewRadius());
} else if (i3 == 12) {
if (this.p == 1) {
if (this.b.getAdSpaceT() != 2) {
this.l.getJSContainerModule().showEndcard(this.b.getVideo_end_type());
} else {
this.l.getJSContainerModule().showVideoEndCover();
}
}
} else if (this.b.getAdSpaceT() != 2) {
this.l.getJSContainerModule().showEndcard(this.b.getVideo_end_type());
} else {
this.l.getJSContainerModule().showVideoEndCover();
}
this.l.getJSVideoModule().dismissAllAlert();
if (i3 == 12 && !this.q && this.p == 1) {
h();
g();
f();
e();
if (ah.a().a("i_l_s_t_r_i", false) && !this.o) {
this.o = true;
MBridgeVideoView.a aVar = this.r;
if (aVar != null) {
aVar.a();
break;
}
}
}
break;
case 13:
if (!this.l.getJSVideoModule().isH5Canvas()) {
this.l.getJSVideoModule().closeVideoOperate(0, 2);
}
this.l.getJSNotifyProxy().a(-1);
break;
case 14:
if (!this.n) {
this.l.getJSVideoModule().closeVideoOperate(0, 1);
break;
}
break;
case 15:
if (obj != null && (obj instanceof MBridgeVideoView.b)) {
this.n = true;
this.l.getJSNotifyProxy().a((MBridgeVideoView.b) obj);
break;
}
break;
default:
switch (i3) {
case 123:
case 124:
this.l.getJSNotifyProxy().a(i3 == 123 ? 7 : 6, "");
break;
case 125:
this.l.getJSContainerModule().hideAlertWebview();
break;
}
}
} else {
com.mbridge.msdk.video.signal.j jSVideoModule2 = this.l.getJSVideoModule();
this.l.getJSContainerModule().configurationChanged(jSVideoModule2.getBorderViewWidth(), jSVideoModule2.getBorderViewHeight(), jSVideoModule2.getBorderViewRadius());
}
} else if (this.l.getJSCommon().g() == 2) {
com.mbridge.msdk.video.signal.j jSVideoModule3 = this.l.getJSVideoModule();
this.l.getJSContainerModule().showMiniCard(jSVideoModule3.getBorderViewTop(), jSVideoModule3.getBorderViewLeft(), jSVideoModule3.getBorderViewWidth(), jSVideoModule3.getBorderViewHeight(), jSVideoModule3.getBorderViewRadius());
}
} else if (ah.a().a("i_l_s_t_r_i", false) && (obj instanceof MBridgeVideoView.a)) {
this.r = (MBridgeVideoView.a) obj;
}
} else if (!this.l.getJSContainerModule().showAlertWebView()) {
this.l.getJSVideoModule().showAlertView();
} else {
this.l.getJSVideoModule().alertWebViewShowed();
}
}
} else if (obj != null && (obj instanceof Integer)) {
if (((Integer) obj).intValue() == 1) {
num = 2;
} else {
num = 1;
}
this.l.getJSVideoModule().soundOperate(num.intValue(), -1);
this.l.getJSNotifyProxy().a(5, num + "");
}
}
this.l.getJSVideoModule().dismissAllAlert();
if (i3 == 2) {
this.l.getJSNotifyProxy().a(2, "");
}
this.l.getJSVideoModule().videoOperate(3);
int i4 = 16;
if (this.l.getJSCommon().g() != 2) {
if (this.b.getVideo_end_type() != 3) {
this.l.getJSVideoModule().setVisible(8);
} else {
this.l.getJSVideoModule().setVisible(0);
}
if (this.m == 2 && !this.l.getJSContainerModule().endCardShowing() && this.b.getAdSpaceT() != 2) {
this.l.getJSContainerModule().showEndcard(this.b.getVideo_end_type());
i4 = i3;
}
}
this.l.getJSNotifyProxy().a(1);
i3 = i4;
}
}
super.a(i3, obj);
}
}

View File

@@ -0,0 +1,178 @@
package com.mbridge.msdk.video.module.a.a;
import android.text.TextUtils;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.ah;
import com.mbridge.msdk.video.module.MBridgeVideoView;
import com.mbridge.msdk.video.module.a.a.k;
import java.io.File;
import java.util.Map;
/* loaded from: classes4.dex */
public class o extends k {
protected int k;
private boolean l;
private boolean m;
private boolean n;
private boolean o;
private boolean p;
private boolean q;
private Map<Integer, String> r;
private MBridgeVideoView.a s;
private int t;
public o(CampaignEx campaignEx, com.mbridge.msdk.videocommon.b.c cVar, com.mbridge.msdk.videocommon.download.a aVar, String str, String str2, com.mbridge.msdk.video.module.a.a aVar2, int i, boolean z) {
super(campaignEx, aVar, cVar, str, str2, aVar2, i, z);
this.q = false;
this.k = 0;
this.t = -1;
if (this.a) {
this.r = campaignEx.getAdvImpList();
}
this.k = campaignEx.getVideoCompleteTime();
}
@Override // com.mbridge.msdk.video.module.a.a.k, com.mbridge.msdk.video.module.a.a.f, com.mbridge.msdk.video.module.a.a
public void a(int i, final Object obj) {
int i2;
CampaignEx campaignEx;
try {
if (i != 2) {
int i3 = 0;
if (i != 20) {
if (i != 130) {
if (i != 6) {
if (i != 7) {
if (i == 15) {
g();
f();
e();
if (ah.a().a("i_l_s_t_r_i", false) && !this.o) {
this.o = true;
MBridgeVideoView.a aVar = this.s;
if (aVar != null) {
aVar.a();
}
}
if (obj == null || !(obj instanceof MBridgeVideoView.b)) {
i2 = 0;
} else {
int i4 = ((MBridgeVideoView.b) obj).a;
i3 = ((MBridgeVideoView.b) obj).b;
i2 = i4;
}
if (i3 == 0 && (campaignEx = this.b) != null) {
i3 = campaignEx.getVideoLength();
}
com.mbridge.msdk.video.module.b.b.a(com.mbridge.msdk.foundation.controller.c.m().c(), this.b, i2, i3, this.j);
com.mbridge.msdk.video.module.b.b.a(this.b, this.r, this.g, i2);
if (!this.p) {
this.p = true;
com.mbridge.msdk.video.module.b.b.a(this.b, this.g);
}
if (!this.q) {
int i5 = this.k;
if (i5 != 0) {
i3 = i5;
}
if (i2 >= i3) {
this.q = true;
i = 17;
}
}
af.b("NotifyListener", "onPlayProgress:" + i2);
this.t = i2;
} else if (i != 16) {
switch (i) {
case 11:
com.mbridge.msdk.videocommon.download.b.getInstance().b(false);
d();
break;
case 12:
Runnable runnable = new Runnable() { // from class: com.mbridge.msdk.video.module.a.a.o.1
@Override // java.lang.Runnable
public final void run() {
Object obj2 = obj;
if (obj2 instanceof String) {
o.this.a((String) obj2);
}
}
};
com.mbridge.msdk.foundation.controller.d.a();
com.mbridge.msdk.foundation.same.f.a.b().execute(runnable);
d();
b();
c();
k.AnonymousClass4 anonymousClass4 = new Runnable() { // from class: com.mbridge.msdk.video.module.a.a.k.4
public AnonymousClass4() {
}
@Override // java.lang.Runnable
public final void run() {
com.mbridge.msdk.videocommon.download.a aVar2;
try {
if (ah.a().a("c_r_v_f_w_s_e", false)) {
return;
}
k kVar = k.this;
if (!kVar.a || (aVar2 = kVar.e) == null) {
return;
}
if (aVar2.l() != null && !TextUtils.isEmpty(k.this.e.l().getVideoUrlEncode())) {
com.mbridge.msdk.foundation.db.n.a(com.mbridge.msdk.foundation.db.g.a(com.mbridge.msdk.foundation.controller.c.m().c())).b(k.this.e.l().getVideoUrlEncode());
}
if (TextUtils.isEmpty(k.this.e.h())) {
return;
}
File file = new File(k.this.e.h());
if (file.exists() && file.isFile() && file.delete()) {
af.a("NotifyListener", "DEL File :" + file.getAbsolutePath());
}
} catch (Exception e) {
e.printStackTrace();
}
}
};
com.mbridge.msdk.foundation.controller.d.a();
com.mbridge.msdk.foundation.same.f.a.b().execute(anonymousClass4);
com.mbridge.msdk.videocommon.download.b.getInstance().b(false);
break;
case 13:
b();
c();
break;
}
}
} else if (this.a && obj != null && (obj instanceof Integer)) {
int intValue = ((Integer) obj).intValue();
if (intValue == 2) {
if (!this.m) {
this.m = true;
com.mbridge.msdk.video.module.b.b.b(com.mbridge.msdk.foundation.controller.c.m().c(), this.b);
}
} else if (intValue == 1 && !this.l) {
this.l = true;
com.mbridge.msdk.video.module.b.b.c(com.mbridge.msdk.foundation.controller.c.m().c(), this.b);
}
}
}
} else if (obj instanceof Integer) {
this.k = ((Integer) obj).intValue();
}
} else if (ah.a().a("i_l_s_t_r_i", false) && (obj instanceof MBridgeVideoView.a)) {
this.s = (MBridgeVideoView.a) obj;
}
this.i.a(i, obj);
}
if (this.a && !this.n) {
this.n = true;
d();
com.mbridge.msdk.video.module.b.b.e(com.mbridge.msdk.foundation.controller.c.m().c(), this.b);
}
this.i.a(i, obj);
} catch (Throwable th) {
af.b("NotifyListener", th.getMessage(), th);
}
}
}