package p12; import android.content.Context; import com.tencent.mm.plugin.finder.video.FinderThumbPlayerProxy; import com.tencent.mm.plugin.finder.video.FinderVideoLayout; import com.tencent.mm.sdk.platformtools.Log; import d32.ta; import ez1.o1; import ez1.u; import kh4.l; import lh4.m; import lh4.o; import tt1.u0; import wg4.b0; public final class v1 extends o implements l<r2, b0> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderVideoLayout f280025d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ FinderVideoLayout.b f280026e; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public v1(FinderVideoLayout finderVideoLayout, FinderVideoLayout.b bVar) { super(1); this.f280025d = finderVideoLayout; this.f280026e = bVar; } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ @Override // kh4.l public b0 invoke(r2 r2Var) { u q55; r2 r2Var2 = r2Var; if (r2Var2 != null) { FinderVideoLayout finderVideoLayout = this.f280025d; FinderVideoLayout.b bVar = this.f280026e; finderVideoLayout.setVideoView(r2Var2); u0 u0Var = bVar.f119773c; bVar.f119771a.getExpectId(); boolean z15 = bVar.f119776f; if (!m.b(r2Var2.getVideoMediaId(), bVar.f119773c.i())) { q2 seekBarLayout = finderVideoLayout.getSeekBarLayout(); if (seekBarLayout != null) { seekBarLayout.setVisibility(0); } r2Var2.setAlpha(0.0f); finderVideoLayout.F(r2Var2, u0Var, z15, bVar.f119771a); } if (r2Var2 instanceof FinderThumbPlayerProxy) { ta.a aVar = ta.W0; Context context = finderVideoLayout.getContext(); m.f(context, "this@FinderVideoLayout.context"); ta f15 = aVar.f(context); if (!(f15 == null || (q55 = f15.q5(-1)) == null || !(q55 instanceof o1))) { ((FinderThumbPlayerProxy) r2Var2).setCommentScene(q55.f210962h.f17675i); } } r2Var2.setLoop(finderVideoLayout.f119766z); r2Var2.s(); String fTPPTag = finderVideoLayout.getFTPPTag(); Log.i(fTPPTag, "[FinderVideoLayout#prepareToPlay] layout=[" + finderVideoLayout.getWidth() + ':' + finderVideoLayout.getHeight() + "] videoView=[" + r2Var2.getWidth() + ':' + r2Var2.getHeight() + "] video=[" + u0Var.f315193e.f42973h + ':' + u0Var.f315193e.f42974i + "] " + finderVideoLayout.P() + " media=" + u0Var + ' '); } return b0.f332794a; } }