package com.sigmob.sdk.videoplayer; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.graphics.Bitmap; import android.media.AudioManager; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.Surface; import android.view.View; import android.view.ViewGroup; import android.view.ViewParent; import android.view.Window; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.ProgressBar; import android.widget.RelativeLayout; import android.widget.SeekBar; import com.czhj.sdk.common.utils.ResourceUtil; import com.czhj.sdk.logger.SigmobLog; import com.sigmob.sdk.nativead.h; import com.sigmob.sdk.nativead.i; import com.sigmob.windad.WindAdError; import java.lang.reflect.InvocationTargetException; import java.util.Timer; import java.util.TimerTask; public class d extends RelativeLayout implements View.OnClickListener, View.OnTouchListener, SeekBar.OnSeekBarChangeListener { private static final String V = "android.media.VOLUME_CHANGED_ACTION"; private static final String W = "android.media.EXTRA_VOLUME_STREAM_TYPE"; public static final String a = "VideoPlayerView"; public static final int b = -1; public static final int c = 0; public static final int d = 1; public static final int e = 2; public static final int f = 3; public static final int g = 4; public static final int h = 5; public static final int i = 6; public static final int j = 7; public static final int k = 1; public static final int l = 2; public static final int m = 3; public static final int n = 0; public static final int o = 80; public static boolean p = true; public static int q = 6; public static int r = 1; public static boolean s = false; public static boolean t = true; public static int u; public int A = 0; public Class B; public boolean C = true; public f D; public int E = -1; public int F = 0; public int G = -1; public long H = 0; public ImageView I; public ImageView J; /* renamed from: K reason: collision with root package name */ public ImageView f137K; public boolean L = false; protected long M = 0; protected Timer N; protected int O; protected int P; protected AudioManager Q; protected a R; protected boolean S; h T; public AudioManager.OnAudioFocusChangeListener U = new AudioManager.OnAudioFocusChangeListener() { /* class com.sigmob.sdk.videoplayer.d.AnonymousClass1 */ public void onAudioFocusChange(int i) { StringBuilder sb; String str; if (i == -2) { sb = new StringBuilder(); str = "AUDIOFOCUS_LOSS_TRANSIENT ["; } else if (i == -1) { d.this.F(); sb = new StringBuilder(); str = "AUDIOFOCUS_LOSS ["; } else { return; } sb.append(str); sb.append(hashCode()); sb.append("]"); SigmobLog.i(sb.toString()); } }; private ViewGroup aa; private ViewGroup ab; private ViewGroup ac; private ViewGroup ad; private ViewGroup ae; private ViewGroup af; private ViewGroup ag; private ViewGroup ah; private ProgressBar ai; private ImageView aj; private h ak; private boolean al = true; private a am; private ImageView an; private int ao; private int ap; private c aq; private boolean ar = false; private View as; private boolean at; private View au; public d v; public int w = -1; public int x = -1; public e y; public int z = 0; /* renamed from: com.sigmob.sdk.videoplayer.d$3 reason: invalid class name */ static /* synthetic */ class AnonymousClass3 { static final /* synthetic */ int[] a; /* JADX WARNING: Can't wrap try/catch for region: R(14:0|1|2|3|4|5|6|7|8|9|10|11|12|14) */ /* JADX WARNING: Failed to process nested try/catch */ /* JADX WARNING: Missing exception handler attribute for start block: B:11:0x003e */ /* JADX WARNING: Missing exception handler attribute for start block: B:3:0x0012 */ /* JADX WARNING: Missing exception handler attribute for start block: B:5:0x001d */ /* JADX WARNING: Missing exception handler attribute for start block: B:7:0x0028 */ /* JADX WARNING: Missing exception handler attribute for start block: B:9:0x0033 */ static { int[] iArr = new int[c.values().length]; a = iArr; iArr[c.START.ordinal()] = 1; a[c.RETRY.ordinal()] = 2; a[c.VOLUME.ordinal()] = 3; a[c.FULLSCREEN.ordinal()] = 4; a[c.BIGRETRY.ordinal()] = 5; try { a[c.BACK.ordinal()] = 6; } catch (NoSuchFieldError unused) { } } } public class a extends TimerTask { public a() { } public void run() { if (d.this.w == 4 || d.this.w == 5) { d.this.post(new Runnable() { /* class com.sigmob.sdk.videoplayer.d.a.AnonymousClass1 */ public void run() { long currentPositionWhenPlaying = d.this.getCurrentPositionWhenPlaying(); long duration = d.this.getDuration(); d.this.a((int) ((100 * currentPositionWhenPlaying) / (duration == 0 ? 1 : duration)), currentPositionWhenPlaying, duration); } }); } } } /* access modifiers changed from: private */ public interface b { void a(int i); } /* access modifiers changed from: private */ public class c extends BroadcastReceiver { b a; public c(b bVar) { this.a = bVar; } public void onReceive(Context context, Intent intent) { int streamVolume; if (d.V.equals(intent.getAction()) && intent.getIntExtra(d.W, -1) == 3 && this.a != null && (streamVolume = ((AudioManager) d.this.getApplicationContext().getSystemService("audio")).getStreamVolume(3)) >= 0) { this.a.a(streamVolume); } } } public d(Context context) { super(context); a(context); } public d(Context context, AttributeSet attributeSet) { super(context, attributeSet); a(context); } private void G() { f fVar; try { f fVar2 = this.D; if (fVar2 != null) { fVar2.e(); } Class cls = this.B; if (cls == null) { fVar = new g(this); } else { fVar = (f) cls.getConstructor(d.class).newInstance(this); } this.D = fVar; } catch (Throwable th) { th.printStackTrace(); } } private void a(View view, int i2) { if (view != null) { view.setVisibility(i2); } } public void A() { } public void B() { } public void C() { } public void D() { int i2; d dVar = this.v; if (dVar == null || (i2 = dVar.w) == 0) { n(); } else if (i2 == 5) { h hVar = this.ak; if (hVar != null) { hVar.onVideoResume(); } this.v.h(); this.v.D.a(); } else if (i2 == 3) { h hVar2 = this.ak; if (hVar2 != null) { hVar2.onVideoStart(); } this.v.D.a(); this.v.h(); } } public void E() { d dVar = this.v; if (dVar != null) { int i2 = dVar.w; if (i2 == 6 || i2 == 0 || i2 == 1 || i2 == 7) { F(); } else if (i2 != 5) { dVar.i(); this.v.D.c(); } } } public void F() { SigmobLog.i("releaseAllVideos"); d dVar = this.v; if (dVar != null) { dVar.m(); this.v = null; } } public void a() { F(); if (this.aq != null) { getContext().unregisterReceiver(this.aq); this.aq = null; } } public void a(float f2) { int i2; if (this.v != null) { int i3 = this.w; if ((i3 == 4 || i3 == 5) && (i2 = this.x) != 1 && i2 != 2) { t(); } } } public void a(float f2, int i2) { } public void a(float f2, String str, long j2, String str2, long j3) { } public void a(int i2) { } public void a(int i2, int i3) { String str; SigmobLog.d("onInfo what - " + i2 + " extra - " + i3); if (i2 != 3) { if (i2 == 701) { if (this.w == 4) { this.at = true; this.D.c(); i(); } str = "MEDIA_INFO_BUFFERING_START"; } else if (i2 == 702) { if (this.at) { this.at = false; this.D.a(); h(); } str = "MEDIA_INFO_BUFFERING_END"; } else { return; } SigmobLog.d(str); return; } int i4 = this.w; if (i4 == 3 || i4 == 2) { h(); } } public void a(int i2, int i3, int i4) { if (i2 == 0) { b(); } else if (i2 == 1) { c(); } else if (i2 == 2) { a(i3, (long) i4); } else if (i2 == 4) { h(); } else if (i2 == 5) { i(); } else if (i2 == 6) { k(); } else if (i2 == 7) { j(); } } public void a(int i2, long j2) { this.w = 2; this.H = j2; this.y.b = i2; this.D.a((Surface) null); this.D.e(); this.D.b(); } public void a(int i2, long j2, long j3) { ProgressBar progressBar; SigmobLog.d("onProgress: progress=" + i2 + " position=" + j2 + " duration=" + j3); if (!this.S) { int i3 = this.G; if (i3 != -1) { if (i3 <= i2) { this.G = -1; } else { return; } } else if (!(i2 == 0 || (progressBar = this.ai) == null)) { progressBar.setProgress(i2); } } h hVar = this.ak; if (hVar != null) { hVar.a(j2, j3); } } public void a(Context context) { View.inflate(context, getLayoutId(), this); this.ae = (ViewGroup) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_sound_rl")); this.ab = (ViewGroup) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_start_rl")); this.ac = (ViewGroup) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_fullscreen_rl")); this.ad = (ViewGroup) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_replay_rl")); this.f137K = (ImageView) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_sound_btn")); this.I = (ImageView) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_start_btn")); this.J = (ImageView) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_fullscreen_btn")); this.aa = (ViewGroup) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_surface_container")); this.ah = (ViewGroup) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_app_container")); this.ai = (ProgressBar) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_bottom_progress")); this.af = (ViewGroup) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_big_replay")); this.aj = (ImageView) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_thumb")); this.an = (ImageView) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_blurImageView")); this.ag = (ViewGroup) findViewById(ResourceUtil.getId(getContext(), "sig_native_video_back_rl")); this.as = findViewById(ResourceUtil.getId(getContext(), "sig_native_video_layout_top")); this.au = findViewById(ResourceUtil.getId(getContext(), "sig_native_video_layout_bottom")); this.ad.setOnClickListener(this); this.ae.setOnClickListener(this); this.ab.setOnClickListener(this); this.ac.setOnClickListener(this); this.af.setOnClickListener(this); this.O = getContext().getResources().getDisplayMetrics().widthPixels; this.P = getContext().getResources().getDisplayMetrics().heightPixels; this.aq = new c(new b() { /* class com.sigmob.sdk.videoplayer.d.AnonymousClass2 */ @Override // com.sigmob.sdk.videoplayer.d.b public void a(int i) { ImageView imageView; int drawableId; if (i != 0 && !d.this.al) { imageView = d.this.f137K; drawableId = ResourceUtil.getDrawableId(d.this.getContext(), "sig_image_video_unmute"); } else { imageView = d.this.f137K; drawableId = ResourceUtil.getDrawableId(d.this.getContext(), "sig_image_video_mute"); } imageView.setImageResource(drawableId); } }); IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction(V); context.registerReceiver(this.aq, intentFilter); this.w = -1; } public void a(ViewGroup viewGroup) { try { d dVar = (d) getClass().getConstructor(Context.class).newInstance(getContext()); dVar.setId(getId()); viewGroup.addView(dVar); dVar.a(this.y.c(), 0, this.B); } catch (IllegalAccessException e2) { e2.printStackTrace(); } catch (InstantiationException e3) { e3.printStackTrace(); } catch (InvocationTargetException e4) { e4.printStackTrace(); } catch (NoSuchMethodException e5) { e5.printStackTrace(); } } /* JADX WARNING: Code restructure failed: missing block: B:11:0x0024, code lost: if (r4 != false) goto L_0x002d; */ /* JADX WARNING: Code restructure failed: missing block: B:13:0x0029, code lost: if (r4 != false) goto L_0x002d; */ /* JADX WARNING: Code restructure failed: missing block: B:14:0x002c, code lost: r0 = 4; */ /* JADX WARNING: Code restructure failed: missing block: B:3:0x0010, code lost: if (r4 != false) goto L_0x002d; */ /* JADX WARNING: Code restructure failed: missing block: B:5:0x0015, code lost: if (r4 != false) goto L_0x002d; */ /* JADX WARNING: Code restructure failed: missing block: B:7:0x001a, code lost: if (r4 != false) goto L_0x002d; */ /* JADX WARNING: Code restructure failed: missing block: B:9:0x001f, code lost: if (r4 != false) goto L_0x002d; */ public void a(c cVar, boolean z2) { ViewGroup viewGroup; int i2 = 0; switch (AnonymousClass3.a[cVar.ordinal()]) { case 1: viewGroup = this.ab; break; case 2: viewGroup = this.ad; break; case 3: viewGroup = this.ae; break; case 4: viewGroup = this.ac; break; case 5: viewGroup = this.af; break; case 6: viewGroup = this.ag; break; default: return; } a(viewGroup, i2); } public void a(e eVar, int i2) { a(eVar, i2, (Class) null); } public void a(e eVar, int i2, Class cls) { if (System.currentTimeMillis() - this.M >= 200) { this.y = eVar; this.x = i2; b(); this.B = cls; } } public void a(e eVar, long j2) { this.w = 2; this.H = j2; this.y = eVar; this.D.a((Surface) null); this.D.e(); this.D.b(); } public void a(String str, String str2) { a(new e(str, str2), 0); } public void a(String str, String str2, int i2) { a(new e(str, str2), i2); } public void a(String str, String str2, int i2, Class cls) { a(new e(str, str2), i2, cls); } public void a(String str, String str2, long j2) { a(new e(str, str2), j2); } public void a(boolean z2) { ViewGroup viewGroup; int i2; if (z2) { viewGroup = this.ac; i2 = 0; } else { viewGroup = this.ac; i2 = 4; } a(viewGroup, i2); } public void b() { SigmobLog.d("onStateNormal stat" + this.w + " [" + hashCode() + "] "); this.w = 0; a(this.aj, 0); a(this.ab, 0); r(); f fVar = this.D; if (fVar != null) { fVar.e(); } } public void b(int i2, int i3) { SigmobLog.e("onError " + i2 + " - " + i3 + " [" + hashCode() + "] "); h hVar = this.ak; if (hVar != null) { hVar.onVideoError(WindAdError.ERROR_SIGMOB_PLAY_VIDEO); } if (i2 != 38 && i3 != -38 && i2 != -38 && i3 != 38 && i3 != -19) { j(); this.D.e(); } } public void b(boolean z2) { this.ar = z2; } public void c() { SigmobLog.d("onStatePreparing [" + hashCode() + "] "); this.w = 1; s(); } public void c(int i2, int i3) { this.ao = i3; this.ap = i2; SigmobLog.d("onVideoSizeChanged [" + hashCode() + "] "); h hVar = this.T; if (hVar != null) { int i4 = this.F; if (i4 != 0) { hVar.setRotation((float) i4); } this.T.a(i2, i3); } } public boolean d() { AudioManager audioManager = (AudioManager) getApplicationContext().getSystemService("audio"); return audioManager != null && audioManager.getStreamVolume(3) == 0; } public void e() { SigmobLog.d("onPrepared [" + hashCode() + "] "); this.w = 3; setSoundChange(this.al); h hVar = this.ak; if (hVar != null) { hVar.onVideoLoad(); } if (!this.L) { h hVar2 = this.ak; if (hVar2 != null) { hVar2.onVideoStart(); } SigmobLog.d("mediaInterface start"); h(); this.D.a(); this.L = false; } else if (this.ar) { this.aj.setImageBitmap(this.T.getBitmap()); } if (this.y.a().toString().toLowerCase().contains("mp3") || this.y.a().toString().toLowerCase().contains("wma") || this.y.a().toString().toLowerCase().contains("aac") || this.y.a().toString().toLowerCase().contains("m4a") || this.y.a().toString().toLowerCase().contains("wav")) { h(); } } public void f() { this.L = true; n(); } public void g() { if (this.w == 3) { this.D.a(); return; } this.L = false; n(); } public ViewGroup getAppContainer() { return this.ah; } public Context getApplicationContext() { Context applicationContext; Context context = getContext(); return (context == null || (applicationContext = context.getApplicationContext()) == null) ? context : applicationContext; } public ImageView getBlurImageView() { return this.an; } public View getBottomLayoutView() { return this.au; } public long getCurrentPositionWhenPlaying() { int i2 = this.w; if (i2 != 4 && i2 != 5) { return 0; } try { return this.D.f(); } catch (IllegalStateException e2) { e2.printStackTrace(); return 0; } } public long getDuration() { try { return this.D.i(); } catch (IllegalStateException e2) { e2.printStackTrace(); return 0; } } public int getLayoutId() { return ResourceUtil.getLayoutId(getContext(), "sig_video_player_layout"); } /* JADX WARNING: Removed duplicated region for block: B:3:0x000b */ public ViewGroup getSigAdView() { ViewGroup viewGroup = (ViewGroup) getParent(); while (!(viewGroup instanceof i) && (viewGroup = (ViewGroup) getParent()) != null) { while (!(viewGroup instanceof i)) { while (!(viewGroup instanceof i)) { } } } return viewGroup; } public Bitmap getTextureBitmap() { h hVar = this.T; if (hVar != null) { return hVar.getBitmap(); } return null; } public ImageView getThumbView() { return this.aj; } public View getTopLayoutView() { return this.as; } public int getVideoHeight() { return this.ao; } public int getVideoSurferViewHeight() { h hVar = this.T; if (hVar != null) { return hVar.getHeight(); } return 0; } public int getVideoWidth() { return this.ap; } public void h() { SigmobLog.d("onStatePlaying [" + hashCode() + "] "); a(this.aj, 4); a(this.ab, 4); if (this.w == 3) { long j2 = this.H; if (j2 != 0) { this.D.a(j2); this.H = 0; } } this.w = 4; q(); } public void i() { SigmobLog.i("onStatePause [" + hashCode() + "] "); this.w = 5; a(this.ab, 0); h hVar = this.ak; if (hVar != null) { hVar.onVideoPause(); } q(); } public void j() { SigmobLog.d("onStateError [" + hashCode() + "] "); this.w = 7; r(); a(this.x == 1 ? this.ab : this.ad, 0); } public void k() { SigmobLog.i("onStateAutoComplete [" + hashCode() + "] "); this.w = 6; r(); ProgressBar progressBar = this.ai; if (progressBar != null) { progressBar.setProgress(100); } } public void l() { Runtime.getRuntime().gc(); h hVar = this.ak; if (hVar != null) { hVar.onVideoCompleted(); } SigmobLog.d("onAutoCompletion [" + hashCode() + "] "); r(); C(); A(); B(); k(); Window c2 = b.c(getContext()); if (c2 != null) { c2.clearFlags(128); } s(); this.v = null; } public void m() { SigmobLog.d("reset [" + hashCode() + "] "); r(); s(); C(); A(); B(); b(); this.aa.removeAllViews(); Window c2 = b.c(getContext()); if (c2 != null) { c2.clearFlags(128); } f fVar = this.D; if (fVar != null) { fVar.e(); } } public void n() { SigmobLog.d("startVideo [" + hashCode() + "] "); setCurrentVideoAdView(this); try { G(); a(this.ad, 4); a(this.af, 4); } catch (Throwable th) { th.printStackTrace(); } Window c2 = b.c(getContext()); if (c2 != null) { c2.setFlags(16777216, 16777216); c2.addFlags(128); } o(); c(); } public void o() { SigmobLog.d("addTextureView [" + hashCode() + "] "); h hVar = this.T; if (hVar != null) { this.aa.removeView(hVar); } h hVar2 = new h(getContext().getApplicationContext()); this.T = hVar2; hVar2.setSurfaceTextureListener(this.D); this.aa.addView(this.T, new FrameLayout.LayoutParams(-1, -1, 17)); } public void onClick(View view) { onTouch(view, null); } /* access modifiers changed from: protected */ public void onMeasure(int i2, int i3) { int i4 = this.x; if (i4 == 1 || i4 == 2) { super.onMeasure(i2, i3); } else if (this.z == 0 || this.A == 0) { super.onMeasure(i2, i3); } else { int size = View.MeasureSpec.getSize(i2); int i5 = (int) ((((float) size) * ((float) this.A)) / ((float) this.z)); setMeasuredDimension(size, i5); getChildAt(0).measure(View.MeasureSpec.makeMeasureSpec(size, 1073741824), View.MeasureSpec.makeMeasureSpec(i5, 1073741824)); } } public void onProgressChanged(SeekBar seekBar, int i2, boolean z2) { if (z2) { getDuration(); } } public void onStartTrackingTouch(SeekBar seekBar) { SigmobLog.d("bottomProgress onStartTrackingTouch [" + hashCode() + "] "); r(); for (ViewParent parent = getParent(); parent != null; parent = parent.getParent()) { parent.requestDisallowInterceptTouchEvent(true); } } public void onStopTrackingTouch(SeekBar seekBar) { SigmobLog.d("bottomProgress onStopTrackingTouch [" + hashCode() + "] "); q(); for (ViewParent parent = getParent(); parent != null; parent = parent.getParent()) { parent.requestDisallowInterceptTouchEvent(false); } int i2 = this.w; if (i2 == 4 || i2 == 5) { long progress = (((long) seekBar.getProgress()) * getDuration()) / 100; this.G = seekBar.getProgress(); this.D.a(progress); SigmobLog.d("seekTo " + progress + " [" + hashCode() + "] "); } } public boolean onTouch(View view, MotionEvent motionEvent) { if (motionEvent != null && motionEvent.getAction() != 1) { return false; } if (view == this.ac) { int i2 = this.x; if (i2 == 0) { t(); return false; } else if (i2 != 1) { return false; } else { u(); return false; } } else if (view == this.ae) { setSoundChange(!this.al); return false; } else if (view == this.ad || view == this.af) { h hVar = this.ak; if (hVar != null) { hVar.a(); } n(); return false; } else if (view != this.ab) { return false; } else { int i3 = this.w; if (i3 != 0) { if (i3 == 4) { SigmobLog.d("pauseVideo [" + hashCode() + "] "); this.D.c(); i(); } else if (i3 == 5) { h hVar2 = this.ak; if (hVar2 != null) { hVar2.onVideoResume(); } this.D.a(); h(); } else if (i3 != 6) { if (i3 == 3) { this.D.a(); h(); h hVar3 = this.ak; if (hVar3 != null) { hVar3.onVideoStart(); } } } return true; } else if (!t && !this.y.a().toString().startsWith("file") && !this.y.a().toString().startsWith("/") && !b.a(getContext())) { z(); return true; } n(); return true; } } public void p() { Window c2 = b.c(getContext()); if (c2 != null) { ((ViewGroup) c2.findViewById(16908290)).removeView(this); } } public void q() { SigmobLog.d("startProgressTimer: [" + hashCode() + "] "); r(); this.N = new Timer(); a aVar = new a(); this.R = aVar; this.N.schedule(aVar, 0, 300); } public void r() { Timer timer = this.N; if (timer != null) { timer.cancel(); } a aVar = this.R; if (aVar != null) { aVar.cancel(); } } public void s() { ProgressBar progressBar = this.ai; if (progressBar != null) { progressBar.setProgress(0); } } public void setBackClickListener(View.OnClickListener onClickListener) { ViewGroup viewGroup = this.ag; if (viewGroup != null) { viewGroup.setOnClickListener(onClickListener); } } public void setBufferProgress(int i2) { SigmobLog.d("setBufferProgress() called with: bufferProgress = [" + i2 + "]"); } public void setCurrentVideoAdView(d dVar) { this.v = dVar; } public void setHolderImageResource(int i2) { } public void setMediaInterface(Class cls) { m(); this.B = cls; } public void setRotation(float f2) { this.T.setRotation(f2); } public void setScreen(int i2) { if (i2 == 0) { v(); } else if (i2 == 1) { w(); } else if (i2 == 2) { x(); } } public void setSoundChange(boolean z2) { ImageView imageView; String str; Context context; this.al = z2; if (z2) { f fVar = this.D; if (fVar != null) { fVar.a(0.0f); } imageView = this.f137K; context = getContext(); str = "sig_image_video_mute"; } else { f fVar2 = this.D; if (fVar2 != null) { fVar2.a(1.0f); } imageView = this.f137K; context = getContext(); str = "sig_image_video_unmute"; } imageView.setImageResource(ResourceUtil.getDrawableId(context, str)); } public void setState(int i2) { a(i2, 0, 0); } public void setTextureViewRotation(int i2) { h hVar; d dVar = this.v; if (dVar != null && (hVar = dVar.T) != null) { hVar.setRotation((float) i2); } } public void setUp(String str) { a(new e(str, (String) null), 0); } public void setVideoAdStatusListener(h hVar) { this.ak = hVar; } public void setVideoAdViewListener(a aVar) { this.am = aVar; } public void setVideoImageDisplayType(int i2) { h hVar; u = i2; d dVar = this.v; if (dVar != null && (hVar = dVar.T) != null) { hVar.requestLayout(); } } public void t() { a aVar = this.am; if (aVar != null) { aVar.g(); } w(); this.J.setImageResource(ResourceUtil.getDrawableId(getContext(), "sig_image_video_small")); } public void u() { this.M = System.currentTimeMillis(); a aVar = this.am; if (aVar != null) { aVar.f(); } v(); this.J.setImageResource(ResourceUtil.getDrawableId(getContext(), "sig_image_video_fullscreen")); } public void v() { this.x = 0; } public void w() { this.x = 1; } public void x() { this.x = 2; } public void y() { } public void z() { } }