package com.tencent.mm.plugin.finder.video; import a32.v; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.os.Looper; import android.util.AttributeSet; import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.widget.FrameLayout; import android.widget.ImageView; import androidx.exifinterface.media.ExifInterface; import androidx.lifecycle.j0; import bw3.a51; import bw3.a73; import bw3.bv1; import bw3.r91; import bw3.y53; import com.tencent.mm.R; import com.tencent.mm.autogen.events.FeedMegaVideoAnimPlayEvent; import com.tencent.mm.autogen.events.FinderSeekEvent; import com.tencent.mm.autogen.events.PreloadProcessChangeEvent; import com.tencent.mm.plugin.FinderCommonFeatureService; import com.tencent.mm.plugin.finder.model.BaseFinderFeed; import com.tencent.mm.plugin.finder.storage.FeedData; import com.tencent.mm.plugin.finder.ui.FinderHomeUI; import com.tencent.mm.plugin.finder.utils.l0; import com.tencent.mm.plugin.finder.utils.n0; import com.tencent.mm.plugin.finder.utils.o0; import com.tencent.mm.plugin.finder.video.FinderLongVideoPlayerSeekBar; import com.tencent.mm.plugin.finder.viewmodel.component.FinderHomeUIC; import com.tencent.mm.plugin.thumbplayer.render.MMTextureViewRender; import com.tencent.mm.pluginsdk.ui.a; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.ui.MMActivity; import com.tencent.tav.core.AssetExtension; import com.tencent.thumbplayer.api.ITPPlayer; import com.tencent.thumbplayer.api.ITPPlayerListener; import d32.ae; import d32.ta; import ek4.y; import ez1.c0; import ez1.f0; import ez1.f1; import ez1.j2; import im1.c; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.concurrent.ConcurrentHashMap; import kh4.l; import kh4.p; import kotlin.Metadata; import lh4.m; import lh4.o; import m60.g; import nf0.e6; import p12.a2; import p12.b2; import p12.b3; import p12.c2; import p12.d2; import p12.e2; import p12.f2; import p12.h2; import p12.i1; import p12.j1; import p12.k1; import p12.l1; import p12.m1; import p12.n1; import p12.n2; import p12.o1; import p12.p1; import p12.q1; import p12.q2; import p12.r1; import p12.r2; import p12.s1; import p12.s2; import p12.t1; import p12.u1; import p12.v2; import p12.x1; import p12.y1; import p12.z1; import pu1.d3; import t32.o1; import t32.p3; import t32.x5; import tt1.a0; import tt1.e0; import tt1.h0; import tt1.u0; import tt1.v0; import tt1.x0; import uk1.u; import wg4.b0; import wg4.n; import xg4.c0; import xg4.r0; import y24.r; import zz1.j3; @Metadata(bv = {}, d1 = {"\u0000¾\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u001b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u001e\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0013\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u00032\u00020\u00042\u00020\u0005:\u0004µ\u0001¶\u0001B!\b\u0016\u0012\b\u0010®\u0001\u001a\u00030\u0001\u0012\n\u0010°\u0001\u001a\u0005\u0018\u00010¯\u0001¢\u0006\u0006\b±\u0001\u0010²\u0001B*\b\u0016\u0012\b\u0010®\u0001\u001a\u00030\u0001\u0012\n\u0010°\u0001\u001a\u0005\u0018\u00010¯\u0001\u0012\u0007\u0010³\u0001\u001a\u00020\u0006¢\u0006\u0006\b±\u0001\u0010´\u0001J\b\u0010\u0007\u001a\u00020\u0006H\u0002J\b\u0010\t\u001a\u00020\bH\u0002J\b\u0010\u000b\u001a\u0004\u0018\u00010\nJ\b\u0010\r\u001a\u0004\u0018\u00010\fJ\b\u0010\u000e\u001a\u00020\u0006H\u0016J\b\u0010\u000f\u001a\u00020\u0006H\u0016J\b\u0010\u0011\u001a\u00020\u0010H\u0016J\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012J\u0006\u0010\u0015\u001a\u00020\u0014R\"\u0010\u0019\u001a\u00020\u00168\u0006@\u0006X\u000e¢\u0006\u0012\n\u0004\b\u0017\u0010\u0018\u001a\u0004\b\u0019\u0010\u001a\"\u0004\b\u001b\u0010\u001cR\u001b\u0010\"\u001a\u00020\u001d8BX\u0002¢\u0006\f\n\u0004\b\u001e\u0010\u001f\u001a\u0004\b \u0010!R\"\u0010$\u001a\u00020\u00168\u0006@\u0006X\u000e¢\u0006\u0012\n\u0004\b#\u0010\u0018\u001a\u0004\b$\u0010\u001a\"\u0004\b%\u0010\u001cR\u001b\u0010)\u001a\u00020\u00068BX\u0002¢\u0006\f\n\u0004\b&\u0010\u001f\u001a\u0004\b'\u0010(R\u001b\u0010,\u001a\u00020\u00068BX\u0002¢\u0006\f\n\u0004\b*\u0010\u001f\u001a\u0004\b+\u0010(R\u001b\u0010/\u001a\u00020\u00068BX\u0002¢\u0006\f\n\u0004\b-\u0010\u001f\u001a\u0004\b.\u0010(R\u001b\u00102\u001a\u00020\u00068BX\u0002¢\u0006\f\n\u0004\b0\u0010\u001f\u001a\u0004\b1\u0010(R\u001b\u00105\u001a\u00020\u00068BX\u0002¢\u0006\f\n\u0004\b3\u0010\u001f\u001a\u0004\b4\u0010(R\u001b\u00108\u001a\u00020\u00168BX\u0002¢\u0006\f\n\u0004\b6\u0010\u001f\u001a\u0004\b7\u0010\u001aR!\u0010>\u001a\b\u0012\u0004\u0012\u00020:098BX\u0002¢\u0006\f\n\u0004\b;\u0010\u001f\u001a\u0004\b<\u0010=R\u001b\u0010C\u001a\u00020?8BX\u0002¢\u0006\f\n\u0004\b@\u0010\u001f\u001a\u0004\bA\u0010BR\u001b\u0010F\u001a\u00020?8BX\u0002¢\u0006\f\n\u0004\bD\u0010\u001f\u001a\u0004\bE\u0010BR$\u0010N\u001a\u0004\u0018\u00010G8\u0006@\u0006X\u000e¢\u0006\u0012\n\u0004\bH\u0010I\u001a\u0004\bJ\u0010K\"\u0004\bL\u0010MR\"\u0010V\u001a\u00020O8\u0006@\u0006X.¢\u0006\u0012\n\u0004\bP\u0010Q\u001a\u0004\bR\u0010S\"\u0004\bT\u0010UR\"\u0010X\u001a\u00020\u00168\u0006@\u0006X\u000e¢\u0006\u0012\n\u0004\bW\u0010\u0018\u001a\u0004\bX\u0010\u001a\"\u0004\bY\u0010\u001cR\"\u0010[\u001a\u00020\u00168\u0006@\u0006X\u000e¢\u0006\u0012\n\u0004\bZ\u0010\u0018\u001a\u0004\b[\u0010\u001a\"\u0004\b\\\u0010\u001cR\"\u0010`\u001a\u00020\u00168\u0006@\u0006X\u000e¢\u0006\u0012\n\u0004\b]\u0010\u0018\u001a\u0004\b^\u0010\u001a\"\u0004\b_\u0010\u001cR\u001b\u0010c\u001a\u00020\u001d8FX\u0002¢\u0006\f\n\u0004\ba\u0010\u001f\u001a\u0004\bb\u0010!R\u001b\u0010f\u001a\u00020\u001d8BX\u0002¢\u0006\f\n\u0004\bd\u0010\u001f\u001a\u0004\be\u0010!R*\u0010i\u001a\u00020\u00162\u0006\u0010g\u001a\u00020\u00168\u0006@FX\u000e¢\u0006\u0012\n\u0004\bh\u0010\u0018\u001a\u0004\bi\u0010\u001a\"\u0004\bj\u0010\u001cR\"\u0010l\u001a\u00020\u00168\u0006@\u0006X\u000e¢\u0006\u0012\n\u0004\bk\u0010\u0018\u001a\u0004\bl\u0010\u001a\"\u0004\bm\u0010\u001cR$\u0010u\u001a\u0004\u0018\u00010n8\u0006@\u0006X\u000e¢\u0006\u0012\n\u0004\bo\u0010p\u001a\u0004\bq\u0010r\"\u0004\bs\u0010tR\u0017\u0010{\u001a\u00020v8\u0006¢\u0006\f\n\u0004\bw\u0010x\u001a\u0004\by\u0010zR(\u0010\u0001\u001a\u0004\u0018\u00010|8\u0006@\u0006X\u000e¢\u0006\u0015\n\u0004\b}\u0010~\u001a\u0005\b\u0010\u0001\"\u0006\b\u0001\u0010\u0001R,\u0010\u0001\u001a\u0005\u0018\u00010\u00018\u0006@\u0006X\u000e¢\u0006\u0018\n\u0006\b \u0001\u0010\u0001\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010\u0001R,\u0010\u0001\u001a\u0005\u0018\u00010\u00018\u0006@\u0006X\u000e¢\u0006\u0018\n\u0006\b\u0001\u0010\u0001\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010\u0001R@\u0010\u0001\u001a\u0019\u0012\u0004\u0012\u00020\u0016\u0012\u0006\u0012\u0004\u0018\u00010|\u0012\u0004\u0012\u00020\b\u0018\u00010\u00018\u0006@\u0006X\u000e¢\u0006\u0018\n\u0006\b\u0001\u0010\u0001\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010\u0001R@\u0010\u0001\u001a\u0019\u0012\u0004\u0012\u00020\u0016\u0012\u0006\u0012\u0004\u0018\u00010|\u0012\u0004\u0012\u00020\b\u0018\u00010\u00018\u0006@\u0006X\u000e¢\u0006\u0018\n\u0006\b\u0001\u0010\u0001\u001a\u0006\b\u0001\u0010\u0001\"\u0006\b\u0001\u0010\u0001R'\u0010¤\u0001\u001a\u00020\u00068\u0006@\u0006X\u000e¢\u0006\u0016\n\u0005\b \u0001\u0010w\u001a\u0005\b¡\u0001\u0010(\"\u0006\b¢\u0001\u0010£\u0001R&\u0010¦\u0001\u001a\u00020\u00168\u0006@\u0006X\u000e¢\u0006\u0015\n\u0005\b¥\u0001\u0010\u0018\u001a\u0005\b¦\u0001\u0010\u001a\"\u0005\b§\u0001\u0010\u001cR \u0010¬\u0001\u001a\u00030¨\u00018BX\u0002¢\u0006\u000f\n\u0005\b©\u0001\u0010\u001f\u001a\u0006\bª\u0001\u0010«\u0001¨\u0006·\u0001"}, d2 = {"Lcom/tencent/mm/plugin/finder/video/FinderVideoLayout;", "Landroid/widget/FrameLayout;", "Lp12/b3;", "Lt32/x5;", "Lp12/v2;", "Lp12/q2$b;", "", "getDefaultSeekMode", "Lwg4/b0;", "getCachePlayInfoOnEnter", "Lim1/c$b;", "getVideoPlayBehavior", "Lim1/c;", "getPlayEventSubscriber", "getVideoDurationSec", "getCurrentPosSec", "", "getCurrentPosMs", "Landroid/graphics/Bitmap;", "getBitmap", "", "getFTPPTag", "", "e", "Z", "isEnableShowLoading", "()Z", "setEnableShowLoading", "(Z)V", "Landroid/view/View;", "g", "Lwg4/g;", "getLoading", "()Landroid/view/View;", "loading", "i", "isSelectedToPlay", "setSelectedToPlay", "j", "getAutoSeekHeadThreshold", "()I", "autoSeekHeadThreshold", "n", "getAutoSeekTailThreshold", "autoSeekTailThreshold", "o", "getAutoSeekRollbackTime", "autoSeekRollbackTime", "p", "getAutoSeekIntervalThreshold", "autoSeekIntervalThreshold", "q", "getAutoSeekLocalInterval", "autoSeekLocalInterval", "r", "getAutoSeekIsOpen", "autoSeekIsOpen", "Ljava/util/LinkedList;", "Lp12/s2;", "s", "getVideoCallBackList", "()Ljava/util/LinkedList;", "videoCallBackList", "Landroid/widget/ImageView;", "u", "getMuteBtn", "()Landroid/widget/ImageView;", "muteBtn", "v", "getThumbView", "thumbView", "Lp12/r2;", "w", "Lp12/r2;", "getVideoView", "()Lp12/r2;", "setVideoView", "(Lp12/r2;)V", "videoView", "Lcom/tencent/mm/plugin/finder/video/FinderVideoCore;", "x", "Lcom/tencent/mm/plugin/finder/video/FinderVideoCore;", "getVideoCore", "()Lcom/tencent/mm/plugin/finder/video/FinderVideoCore;", "setVideoCore", "(Lcom/tencent/mm/plugin/finder/video/FinderVideoCore;)V", "videoCore", "y", "isLongVideo", "setLongVideo", "z", "isLoop", "setLoop", ExifInterface.GPS_MEASUREMENT_IN_PROGRESS, "getReuseSamePlayer", "setReuseSamePlayer", "reuseSamePlayer", "C", "getRetryBtn", "retryBtn", "D", "getVideoTypeIv", "videoTypeIv", "value", ExifInterface.LONGITUDE_EAST, "isMute", "setMute", "F", "isPreRenderFirstFrame", "setPreRenderFirstFrame", "Luk1/u;", "H", "Luk1/u;", "getBulletLifecycle", "()Luk1/u;", "setBulletLifecycle", "(Luk1/u;)V", "bulletLifecycle", "Lp12/h2;", "I", "Lp12/h2;", "getLifecycle", "()Lp12/h2;", "lifecycle", "Lcom/tencent/mm/plugin/finder/video/FinderVideoLayout$b;", "J", "Lcom/tencent/mm/plugin/finder/video/FinderVideoLayout$b;", "getPlayInfo", "()Lcom/tencent/mm/plugin/finder/video/FinderVideoLayout$b;", "setPlayInfo", "(Lcom/tencent/mm/plugin/finder/video/FinderVideoLayout$b;)V", "playInfo", "Lp12/q2;", "K", "Lp12/q2;", "getSeekBarLayout", "()Lp12/q2;", "setSeekBarLayout", "(Lp12/q2;)V", "seekBarLayout", "Lcom/tencent/mm/plugin/finder/video/FinderLongVideoPlayerSeekBar;", "L", "Lcom/tencent/mm/plugin/finder/video/FinderLongVideoPlayerSeekBar;", "getLongVideoSeekBar", "()Lcom/tencent/mm/plugin/finder/video/FinderLongVideoPlayerSeekBar;", "setLongVideoSeekBar", "(Lcom/tencent/mm/plugin/finder/video/FinderLongVideoPlayerSeekBar;)V", "longVideoSeekBar", "Lkotlin/Function2;", "M", "Lkh4/p;", "getVideoPauseCallback", "()Lkh4/p;", "setVideoPauseCallback", "(Lkh4/p;)V", "videoPauseCallback", "N", "getThumbShowCallback", "setThumbShowCallback", "thumbShowCallback", "P", "getPlayAdapterPosition", "setPlayAdapterPosition", "(I)V", "playAdapterPosition", "Q", "isEnablePlay", "setEnablePlay", "Lf32/h;", "R", "getTeenModeTempAuthUIC", "()Lf32/h;", "teenModeTempAuthUIC", "Landroid/content/Context;", "context", "Landroid/util/AttributeSet;", "attrs", "<init>", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "defStyleAttr", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "a", "b", "plugin-finder_release"}, k = 1, mv = {1, 7, 1}) public final class FinderVideoLayout extends FrameLayout implements b3, x5, v2, q2.b { /* renamed from: y0 reason: collision with root package name */ public static final /* synthetic */ int f119744y0 = 0; public boolean A; public LinkedList<y53> B; public final wg4.g C; public final wg4.g D; public boolean E; public boolean F; public int G; public u H; public final h2 I; public b J; public q2 K; public FinderLongVideoPlayerSeekBar L; public p<? super Boolean, ? super b, b0> M; public p<? super Boolean, ? super b, b0> N; public int P; public boolean Q; public final wg4.g R; public boolean S; public float T; public int U; public long V; public long W; /* renamed from: d reason: collision with root package name */ public String f119745d = "Finder.VideoLayout"; /* renamed from: e reason: collision with root package name */ public boolean f119746e = true; /* renamed from: f reason: collision with root package name */ public final v f119747f; /* renamed from: g reason: collision with root package name */ public final wg4.g f119748g; /* renamed from: h reason: collision with root package name */ public boolean f119749h; /* renamed from: i reason: collision with root package name */ public boolean f119750i; /* renamed from: j reason: collision with root package name */ public final wg4.g f119751j; /* renamed from: n reason: collision with root package name */ public final wg4.g f119752n; /* renamed from: o reason: collision with root package name */ public final wg4.g f119753o; /* renamed from: p reason: collision with root package name */ public final wg4.g f119754p; /* renamed from: p0 reason: collision with root package name */ public int f119755p0; /* renamed from: q reason: collision with root package name */ public final wg4.g f119756q; /* renamed from: r reason: collision with root package name */ public final wg4.g f119757r; /* renamed from: s reason: collision with root package name */ public final wg4.g f119758s; /* renamed from: t reason: collision with root package name */ public y32.b f119759t; /* renamed from: u reason: collision with root package name */ public final wg4.g f119760u; /* renamed from: v reason: collision with root package name */ public final wg4.g f119761v; /* renamed from: w reason: collision with root package name */ public r2 f119762w; /* renamed from: x reason: collision with root package name */ public FinderVideoCore f119763x; /* renamed from: x0 reason: collision with root package name */ public float f119764x0; /* renamed from: y reason: collision with root package name */ public boolean f119765y; /* renamed from: z reason: collision with root package name */ public boolean f119766z; public enum a { SEEK_NORMAL, SEEK_SILENTLY, NO_SEEK } public static final class b { /* renamed from: a reason: collision with root package name */ public final FeedData f119771a; /* renamed from: b reason: collision with root package name */ public final String f119772b; /* renamed from: c reason: collision with root package name */ public final u0 f119773c; /* renamed from: d reason: collision with root package name */ public final int f119774d; /* renamed from: e reason: collision with root package name */ public final LinkedList<y53> f119775e; /* renamed from: f reason: collision with root package name */ public final boolean f119776f; /* renamed from: g reason: collision with root package name */ public boolean f119777g; /* renamed from: h reason: collision with root package name */ public boolean f119778h; /* renamed from: i reason: collision with root package name */ public boolean f119779i; /* renamed from: j reason: collision with root package name */ public a73 f119780j; /* renamed from: k reason: collision with root package name */ public boolean f119781k; public b(FeedData feedData, String str, u0 u0Var, int i15, LinkedList linkedList, boolean z15, boolean z16, boolean z17, boolean z18, a73 a732, boolean z19, int i16, lh4.h hVar) { z17 = (i16 & 128) != 0 ? false : z17; z18 = (i16 & 256) != 0 ? false : z18; a732 = (i16 & 512) != 0 ? null : a732; z19 = (i16 & 1024) != 0 ? false : z19; m.g(feedData, "feed"); m.g(str, "mediaId"); m.g(u0Var, "media"); m.g(linkedList, "mediaList"); this.f119771a = feedData; this.f119772b = str; this.f119773c = u0Var; this.f119774d = i15; this.f119775e = linkedList; this.f119776f = z15; this.f119777g = z16; this.f119778h = z17; this.f119779i = z18; this.f119780j = a732; this.f119781k = z19; } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof b)) { return false; } b bVar = (b) obj; return m.b(this.f119771a, bVar.f119771a) && m.b(this.f119772b, bVar.f119772b) && m.b(this.f119773c, bVar.f119773c) && this.f119774d == bVar.f119774d && m.b(this.f119775e, bVar.f119775e) && this.f119776f == bVar.f119776f && this.f119777g == bVar.f119777g && this.f119778h == bVar.f119778h && this.f119779i == bVar.f119779i && m.b(this.f119780j, bVar.f119780j) && this.f119781k == bVar.f119781k; } public int hashCode() { int hashCode = ((((((((this.f119771a.hashCode() * 31) + this.f119772b.hashCode()) * 31) + this.f119773c.hashCode()) * 31) + this.f119774d) * 31) + this.f119775e.hashCode()) * 31; boolean z15 = this.f119776f; int i15 = 1; if (z15) { z15 = true; } int i16 = z15 ? 1 : 0; int i17 = z15 ? 1 : 0; int i18 = z15 ? 1 : 0; int i19 = (hashCode + i16) * 31; boolean z16 = this.f119777g; if (z16) { z16 = true; } int i25 = z16 ? 1 : 0; int i26 = z16 ? 1 : 0; int i27 = z16 ? 1 : 0; int i28 = (i19 + i25) * 31; boolean z17 = this.f119778h; if (z17) { z17 = true; } int i29 = z17 ? 1 : 0; int i35 = z17 ? 1 : 0; int i36 = z17 ? 1 : 0; int i37 = (i28 + i29) * 31; boolean z18 = this.f119779i; if (z18) { z18 = true; } int i38 = z18 ? 1 : 0; int i39 = z18 ? 1 : 0; int i45 = z18 ? 1 : 0; int i46 = (i37 + i38) * 31; a73 a732 = this.f119780j; int hashCode2 = (i46 + (a732 == null ? 0 : a732.hashCode())) * 31; boolean z19 = this.f119781k; if (!z19) { i15 = z19 ? 1 : 0; } return hashCode2 + i15; } public String toString() { return "PlayInfo(feed=" + this.f119771a + ", mediaId=" + this.f119772b + ", media=" + this.f119773c + ", position=" + this.f119774d + ", mediaList=" + this.f119775e + ", isLocal=" + this.f119776f + ", isFocusPlaying=" + this.f119777g + ", isSeekMode=" + this.f119778h + ", isHasPlayed=" + this.f119779i + ", cropInfo=" + this.f119780j + ", pauseWhenSeek=" + this.f119781k + ')'; } } public static final class c implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderVideoLayout f119782d; public c(FinderVideoLayout finderVideoLayout) { this.f119782d = finderVideoLayout; } public final void run() { l<Boolean, b0> onCustomLoadingStatusChange; FinderLongVideoPlayerSeekBar longVideoSeekBar = this.f119782d.getLongVideoSeekBar(); if (longVideoSeekBar == null || (onCustomLoadingStatusChange = longVideoSeekBar.getOnCustomLoadingStatusChange()) == null) { this.f119782d.getLoading().animate().cancel(); if (this.f119782d.getLoading().getVisibility() != 8) { View loading = this.f119782d.getLoading(); k30.a aVar = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar.c(8); j30.a.d(loading, aVar.b(), "com/tencent/mm/plugin/finder/video/FinderVideoLayout$dismissLoading$1", "run", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); loading.setVisibility(((Integer) aVar.a(0)).intValue()); j30.a.e(loading, "com/tencent/mm/plugin/finder/video/FinderVideoLayout$dismissLoading$1", "run", "()V", "android/view/View_EXEC_", "setVisibility", "(I)V"); return; } return; } onCustomLoadingStatusChange.invoke(Boolean.FALSE); } } public static final class d implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderVideoLayout f119783d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ String f119784e; public d(FinderVideoLayout finderVideoLayout, String str) { this.f119783d = finderVideoLayout; this.f119784e = str; } public final void run() { Float f15; r2 videoView = this.f119783d.getVideoView(); if (videoView != null) { f15 = Float.valueOf(videoView.getAlpha()); } else { f15 = null; } if (m.a(f15, 1.0f)) { Log.w(this.f119783d.getFTPPTag(), "dismissThumb return for alpha == 1."); return; } FinderVideoLayout finderVideoLayout = this.f119783d; if (finderVideoLayout.S) { String fTPPTag = finderVideoLayout.getFTPPTag(); Log.w(fTPPTag, "dismissThumb return for isShowThumbAnimating:" + this.f119783d.S); return; } p<Boolean, b, b0> thumbShowCallback = finderVideoLayout.getThumbShowCallback(); if (thumbShowCallback != null) { thumbShowCallback.invoke(Boolean.FALSE, this.f119783d.getPlayInfo()); } r2 videoView2 = this.f119783d.getVideoView(); if (videoView2 != null) { videoView2.setAlpha(1.0f); } String fTPPTag2 = this.f119783d.getFTPPTag(); Log.i(fTPPTag2, "[dismissThumb] " + this.f119784e + ' ' + this.f119783d.P()); } } public static final class e implements View.OnClickListener { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderLongVideoPlayerSeekBar f119785d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ FinderVideoLayout f119786e; public e(FinderLongVideoPlayerSeekBar finderLongVideoPlayerSeekBar, FinderVideoLayout finderVideoLayout) { this.f119785d = finderLongVideoPlayerSeekBar; this.f119786e = finderVideoLayout; } public final void onClick(View view) { b playInfo; c.b videoPlayBehavior; ArrayList arrayList = new ArrayList(); arrayList.add(view); Object[] array = arrayList.toArray(); arrayList.clear(); j30.a.b("com/tencent/mm/plugin/finder/video/FinderVideoLayout$initLongVideoSeekBar$1$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V", this, array); boolean z15 = this.f119785d.f173106z; this.f119786e.N(!z15); this.f119785d.setIsPlay(!z15); if (!(!z15 || (playInfo = this.f119786e.getPlayInfo()) == null || (videoPlayBehavior = this.f119786e.getVideoPlayBehavior()) == null)) { long expectId = playInfo.f119771a.getExpectId(); u0 u0Var = playInfo.f119773c; videoPlayBehavior.z(expectId, u0Var.f315193e, u0Var); } j30.a.g(this, "com/tencent/mm/plugin/finder/video/FinderVideoLayout$initLongVideoSeekBar$1$1", "android/view/View$OnClickListener", "onClick", "(Landroid/view/View;)V"); } } public static final class f implements h13.c { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderLongVideoPlayerSeekBar f119787d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ FinderVideoLayout f119788e; public f(FinderLongVideoPlayerSeekBar finderLongVideoPlayerSeekBar, FinderVideoLayout finderVideoLayout) { this.f119787d = finderLongVideoPlayerSeekBar; this.f119788e = finderVideoLayout; } @Override // h13.c public void a(int i15) { int i16; int i17; FinderLongVideoPlayerSeekBar.a aVar = this.f119787d.H; if (aVar != null) { aVar.a(i15); } r2 videoView = this.f119788e.getVideoView(); if (videoView != null) { videoView.B((double) i15, true, this.f119788e.getDefaultSeekMode()); } FinderVideoLayout.E(this.f119788e, 0, null, null, 7, null); this.f119787d.setIsPlay(true); kh4.a<b0> onSeekEnd = this.f119787d.getOnSeekEnd(); if (onSeekEnd != null) { onSeekEnd.invoke(); } u bulletLifecycle = this.f119788e.getBulletLifecycle(); if (bulletLifecycle != null) { bulletLifecycle.a(i15); } b playInfo = this.f119788e.getPlayInfo(); if (playInfo != null) { String str = null; if (!playInfo.f119777g) { playInfo = null; } if (playInfo != null) { FinderVideoLayout finderVideoLayout = this.f119788e; c.b videoPlayBehavior = finderVideoLayout.getVideoPlayBehavior(); if (videoPlayBehavior != null) { long expectId = playInfo.f119771a.getExpectId(); y53 y532 = playInfo.f119773c.f315193e; r2 videoView2 = finderVideoLayout.getVideoView(); if (videoView2 != null) { i17 = videoView2.getCurrentPlaySecond(); } else { i17 = 0; } videoPlayBehavior.q(expectId, y532, i17, i15, playInfo.f119773c); } long expectId2 = playInfo.f119771a.getExpectId(); r2 videoView3 = finderVideoLayout.getVideoView(); if (videoView3 != null) { str = videoView3.getVideoMediaId(); } r2 videoView4 = finderVideoLayout.getVideoView(); if (videoView4 != null) { i16 = videoView4.getCurrentPlaySecond(); } else { i16 = 0; } finderVideoLayout.G(expectId2, str, i16, i15); } } } @Override // h13.c public void d(int i15) { } @Override // h13.c public void onSeekPre() { this.f119788e.N(false); this.f119787d.setIsPlay(false); kh4.a<b0> onSeekStart = this.f119787d.getOnSeekStart(); if (onSeekStart != null) { onSeekStart.invoke(); } } } public static final class g extends o implements l<r2, b0> { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderVideoLayout f119789d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ d42.a f119790e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ b f119791f; /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public g(FinderVideoLayout finderVideoLayout, d42.a aVar, b bVar) { super(1); this.f119789d = finderVideoLayout; this.f119790e = aVar; this.f119791f = 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) { r2 r2Var2 = r2Var; this.f119789d.setVideoView(r2Var2); this.f119789d.getVideoCore().c2().I2(r2Var2); if (r2Var2 != null) { d42.a aVar = this.f119790e; b bVar = this.f119791f; FinderVideoLayout finderVideoLayout = this.f119789d; r2Var2.setFinderVideoPlayTrace(aVar); bVar.f119777g = true; u0 u0Var = bVar.f119773c; bVar.f119771a.getExpectId(); boolean z15 = bVar.f119776f; LinkedList<y53> linkedList = bVar.f119775e; finderVideoLayout.getVideoCore().getClass(); if (r2Var2.getIsNeverStart() || r2Var2.E()) { q2 seekBarLayout = finderVideoLayout.getSeekBarLayout(); if (seekBarLayout != null) { seekBarLayout.setVisibility(0); } r2Var2.setAlpha(0.0f); finderVideoLayout.F(r2Var2, u0Var, z15, bVar.f119771a); } else if ((r2Var2 instanceof FinderThumbPlayerProxy) && ((FinderThumbPlayerProxy) r2Var2).getCurrentPlayState() == 6) { finderVideoLayout.t(AssetExtension.SCENE_PLAY); } finderVideoLayout.p(r2Var2, u0Var, linkedList); } else { FinderVideoLayout finderVideoLayout2 = this.f119789d; finderVideoLayout2.getClass(); finderVideoLayout2.I(new z1(finderVideoLayout2)); } return b0.f332794a; } } public static final class h implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderVideoLayout f119792d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ boolean f119793e; public h(FinderVideoLayout finderVideoLayout, boolean z15) { this.f119792d = finderVideoLayout; this.f119793e = z15; } public final void run() { p<Boolean, b, b0> videoPauseCallback = this.f119792d.getVideoPauseCallback(); if (videoPauseCallback != null) { videoPauseCallback.invoke(Boolean.valueOf(this.f119793e), this.f119792d.getPlayInfo()); } this.f119792d.getClass(); } } public static final class i implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ q2 f119794d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ long f119795e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ FinderVideoLayout f119796f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ long f119797g; /* renamed from: h reason: collision with root package name */ public final /* synthetic */ int f119798h; /* renamed from: i reason: collision with root package name */ public final /* synthetic */ int f119799i; public i(q2 q2Var, long j15, FinderVideoLayout finderVideoLayout, long j16, int i15, int i16) { this.f119794d = q2Var; this.f119795e = j15; this.f119796f = finderVideoLayout; this.f119797g = j16; this.f119798h = i15; this.f119799i = i16; } public final void run() { boolean z15; if (!this.f119794d.j()) { long j15 = this.f119795e; if (j15 > 0) { if (this.f119796f.T == -1.0f) { z15 = true; } else { z15 = false; } if (z15) { q2 q2Var = this.f119794d; long j16 = this.f119797g; q2Var.g((((float) j16) * 1.0f) / ((float) j15), j16, j15); int i15 = this.f119796f.U; int i16 = this.f119798h; if (i15 != i16) { q2 q2Var2 = this.f119794d; int i17 = this.f119799i; q2Var2.m((((float) i16) * 1.0f) / ((float) i17), i16, i17); this.f119796f.U = this.f119798h; } } } } } } public static final class j implements Runnable { /* renamed from: d reason: collision with root package name */ public final /* synthetic */ FinderLongVideoPlayerSeekBar f119800d; /* renamed from: e reason: collision with root package name */ public final /* synthetic */ int f119801e; /* renamed from: f reason: collision with root package name */ public final /* synthetic */ int f119802f; /* renamed from: g reason: collision with root package name */ public final /* synthetic */ FinderVideoLayout f119803g; public j(FinderLongVideoPlayerSeekBar finderLongVideoPlayerSeekBar, int i15, int i16, FinderVideoLayout finderVideoLayout) { this.f119800d = finderLongVideoPlayerSeekBar; this.f119801e = i15; this.f119802f = i16; this.f119803g = finderVideoLayout; } public final void run() { long j15; this.f119800d.setVideoTotalTime(this.f119801e); this.f119800d.seek(this.f119802f); FinderLongVideoPlayerSeekBar finderLongVideoPlayerSeekBar = this.f119800d; r2 videoView = this.f119803g.getVideoView(); if (videoView != null) { j15 = videoView.getCurrentPlayMs(); } else { j15 = 0; } FinderLongVideoPlayerSeekBar.a aVar = finderLongVideoPlayerSeekBar.H; if (aVar != null) { aVar.d(j15); } } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public FinderVideoLayout(Context context, AttributeSet attributeSet) { super(context, attributeSet); m.g(context, "context"); setTag("Finder.VideoLayout"); setId(R.id.e_k); setImportantForAccessibility(2); j0 a15 = r.f342954a.e(FinderCommonFeatureService.class).a(v.class); m.f(a15, "UICProvider.of(FinderCom…StateCacheVM::class.java)"); this.f119747f = (v) a15; this.f119748g = wg4.h.a(new s1(this)); this.f119751j = wg4.h.a(i1.f279940d); this.f119752n = wg4.h.a(n1.f279980d); this.f119753o = wg4.h.a(m1.f279977d); this.f119754p = wg4.h.a(j1.f279957d); this.f119756q = wg4.h.a(l1.f279966d); this.f119757r = wg4.h.a(k1.f279961d); this.f119758s = wg4.h.a(e2.f279924d); this.f119759t = new u1(this); this.f119760u = wg4.h.a(new t1(this)); this.f119761v = wg4.h.a(new d2(this)); this.f119766z = true; this.B = new LinkedList<>(); this.C = wg4.h.a(new x1(this)); this.D = wg4.h.a(new f2(this)); this.I = new r1(this); this.Q = true; this.R = wg4.h.a(new c2(this)); this.T = -1.0f; this.U = -1; this.f119755p0 = 1; this.f119764x0 = 1.0f; } public static /* synthetic */ void E(FinderVideoLayout finderVideoLayout, int i15, d42.a aVar, BaseFinderFeed baseFinderFeed, int i16, Object obj) { if ((i16 & 1) != 0) { i15 = 0; } if ((i16 & 2) != 0) { aVar = null; } if ((i16 & 4) != 0) { baseFinderFeed = null; } finderVideoLayout.D(i15, aVar, baseFinderFeed); } public static void L(FinderVideoLayout finderVideoLayout, long j15, int i15, float f15, boolean z15, ITPPlayerListener.IOnSeekCompleteListener iOnSeekCompleteListener, int i16, Object obj) { int i17; float f16; boolean z16; ITPPlayerListener.IOnSeekCompleteListener iOnSeekCompleteListener2; if ((i16 & 2) != 0) { i17 = 1; } else { i17 = i15; } if ((i16 & 4) != 0) { f16 = 1.0f; } else { f16 = f15; } if ((i16 & 8) != 0) { z16 = true; } else { z16 = z15; } if ((i16 & 16) != 0) { iOnSeekCompleteListener2 = null; } else { iOnSeekCompleteListener2 = iOnSeekCompleteListener; } finderVideoLayout.getClass(); m60.d.O(new y1(finderVideoLayout, j15, z16, i17, f16, iOnSeekCompleteListener2)); } private final int getAutoSeekHeadThreshold() { return ((Number) this.f119751j.getValue()).intValue(); } private final int getAutoSeekIntervalThreshold() { return ((Number) this.f119754p.getValue()).intValue(); } private final boolean getAutoSeekIsOpen() { return ((Boolean) this.f119757r.getValue()).booleanValue(); } private final int getAutoSeekLocalInterval() { return ((Number) this.f119756q.getValue()).intValue(); } private final int getAutoSeekRollbackTime() { return ((Number) this.f119753o.getValue()).intValue(); } private final int getAutoSeekTailThreshold() { return ((Number) this.f119752n.getValue()).intValue(); } private final void getCachePlayInfoOnEnter() { } /* access modifiers changed from: private */ /* access modifiers changed from: public */ private final int getDefaultSeekMode() { zz1.e.f356376d.getClass(); if (zz1.e.f356348a9.t().intValue() == 1) { return 3; } return 2; } /* access modifiers changed from: private */ /* access modifiers changed from: public */ private final View getLoading() { Object value = this.f119748g.getValue(); m.f(value, "<get-loading>(...)"); return (View) value; } private final ImageView getMuteBtn() { Object value = this.f119760u.getValue(); m.f(value, "<get-muteBtn>(...)"); return (ImageView) value; } private final f32.h getTeenModeTempAuthUIC() { return (f32.h) this.R.getValue(); } /* access modifiers changed from: private */ public final ImageView getThumbView() { Object value = this.f119761v.getValue(); m.f(value, "<get-thumbView>(...)"); return (ImageView) value; } /* access modifiers changed from: private */ public final LinkedList<s2> getVideoCallBackList() { return (LinkedList) this.f119758s.getValue(); } private final View getVideoTypeIv() { Object value = this.D.getValue(); m.f(value, "<get-videoTypeIv>(...)"); return (View) value; } /* JADX WARNING: Removed duplicated region for block: B:106:0x02aa */ /* JADX WARNING: Removed duplicated region for block: B:109:0x02c1 */ /* JADX WARNING: Removed duplicated region for block: B:110:0x02d4 */ /* JADX WARNING: Removed duplicated region for block: B:97:0x0271 */ /* JADX WARNING: Removed duplicated region for block: B:98:0x0286 */ public static void q(FinderVideoLayout finderVideoLayout, int i15, FeedData feedData, q2 q2Var, int i16, boolean z15, p pVar, p pVar2, boolean z16, boolean z17, int i17, Object obj) { q2 q2Var2; boolean z18; FeedData feedData2; e0 e0Var; Object obj2; Object obj3; j80.d<tt1.j0> dVar; String str; m80.f fVar; a51 a512; q2 q2Var3 = (i17 & 4) != 0 ? null : q2Var; int i18 = (i17 & 8) != 0 ? 0 : i16; boolean z19 = (i17 & 16) != 0 ? false : z15; p pVar3 = (i17 & 32) != 0 ? null : pVar; p pVar4 = (i17 & 64) != 0 ? null : pVar2; boolean z25 = (i17 & 128) != 0 ? true : z16; boolean z26 = (i17 & 256) != 0 ? true : z17; finderVideoLayout.getClass(); j3 j3Var = j3.f357049f; m.g(feedData, "feed"); String fTPPTag = finderVideoLayout.getFTPPTag(); Log.i(fTPPTag, "convert position=" + i15 + " feedTime=" + feedData.getTimestamps() + " urlValidDuration=" + feedData.getUrlValidDuration() + "s "); boolean z27 = feedData.getVrLive() == 1; finderVideoLayout.G = i18; finderVideoLayout.f119749h = z19; finderVideoLayout.M = pVar3; finderVideoLayout.N = pVar4; r91 liveInfo = feedData.getLiveInfo(); boolean z28 = (liveInfo == null || (a512 = liveInfo.f35049p0) == null || a512.f15928d != 1 || a512.f15931g == 1) ? false : true; if (z27 || z28) { View loading = finderVideoLayout.getLoading(); k30.a aVar = new k30.a(); ThreadLocal<k30.a> threadLocal = k30.c.f244265a; aVar.c(8); j30.a.d(loading, aVar.b(), "com/tencent/mm/plugin/finder/video/FinderVideoLayout", "convert", "(ILcom/tencent/mm/plugin/finder/storage/FeedData;Lcom/tencent/mm/plugin/finder/video/IFinderVideoSeekBar;IZLkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;ZZ)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); z18 = false; loading.setVisibility(((Integer) aVar.a(0)).intValue()); j30.a.e(loading, "com/tencent/mm/plugin/finder/video/FinderVideoLayout", "convert", "(ILcom/tencent/mm/plugin/finder/storage/FeedData;Lcom/tencent/mm/plugin/finder/video/IFinderVideoSeekBar;IZLkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function2;ZZ)V", "android/view/View_EXEC_", "setVisibility", "(I)V"); q2Var2 = q2Var3; } else { finderVideoLayout.I(new q1(finderVideoLayout)); q2Var2 = q2Var3; z18 = false; } finderVideoLayout.K = q2Var2; finderVideoLayout.V = 0; if (q2Var2 != null) { q2Var2.setSeekBarCallback(finderVideoLayout); } LinkedList<y53> mediaList = feedData.getMediaList(); finderVideoLayout.B = mediaList; if (i15 < mediaList.size()) { y53 y532 = finderVideoLayout.B.get(i15); m.f(y532, "mediaList[position]"); y53 y533 = y532; long id5 = feedData.getId(); String str2 = y533.f42978p; if (str2 == null) { str2 = ""; } u0 u15 = finderVideoLayout.u(id5, str2, y533); boolean z29 = (feedData.getId() != 0 || !com.tencent.mm.vfs.u1.k(u15.getUrl())) ? z18 : true; String i19 = u15.i(); LinkedList<y53> linkedList = finderVideoLayout.B; y53 y534 = u15.f315193e; finderVideoLayout.J = new b(feedData, i19, u15, i15, linkedList, z29, false, false, false, y534.f42983t ? y534.f42984u : null, false, 1408, null); j2 j2Var = j2.f210779a; String str3 = u15.f315193e.f42978p; if (str3 == null) { str3 = ""; } String g15 = u15.g(); String url = u15.getUrl(); String urlToken = u15.getUrlToken(); j2.a aVar2 = j2.f210780b.get(str3); if (aVar2 != null) { if (!(aVar2.f210785e == 0)) { aVar2 = null; } if (aVar2 != null) { aVar2.f210785e = e6.c(); aVar2.f210784d = g15; aVar2.f210782b = url; aVar2.f210783c = urlToken; } } finderVideoLayout.I(new b2(finderVideoLayout)); finderVideoLayout.f119746e = true; if (z26) { if (y533.P == null) { String str4 = y533.F; if ((str4 == null || str4.length() == 0) || !finderVideoLayout.f119749h) { e0Var = new e0(y533, j3Var, null, null, 12, null); finderVideoLayout.getThumbView().setScaleType(ImageView.ScaleType.CENTER_CROP); if (y533.f42971f != 9) { obj3 = t32.e2.class; obj2 = v0.class; dVar = ((v0) r.f342954a.e(obj3).c(obj2)).Q3(); } else { obj3 = t32.e2.class; obj2 = v0.class; dVar = ((v0) r.f342954a.e(obj3).c(obj2)).C3(); } str = e0Var.f315042g; if (!(str != null || str.length() == 0)) { dVar.f238114a.n().d(new w80.a<>(e0Var), null); } k80.b<tt1.j0, Bitmap> a15 = dVar.a(e0Var); if (!finderVideoLayout.f119749h) { fVar = ((v0) r.f342954a.e(obj3).c(obj2)).W(h0.a.f315069e); } else { fVar = ((v0) r.f342954a.e(obj3).c(obj2)).W(h0.a.f315068d); } a15.f(fVar); a15.f245205d = new o1(finderVideoLayout); ((k80.a) a15).c(finderVideoLayout.getThumbView()); } } if (finderVideoLayout.f119749h) { e0Var = new a0(y533, j3Var, null, 4, null); } else { e0Var = new e0(y533, j3Var, null, null, 12, null); } finderVideoLayout.getThumbView().setScaleType(ImageView.ScaleType.CENTER_CROP); if (y533.f42971f != 9) { } str = e0Var.f315042g; if (!(str != null || str.length() == 0)) { } k80.b<tt1.j0, Bitmap> a152 = dVar.a(e0Var); if (!finderVideoLayout.f119749h) { } a152.f(fVar); a152.f245205d = new o1(finderVideoLayout); ((k80.a) a152).c(finderVideoLayout.getThumbView()); } if (z25) { v vVar = finderVideoLayout.f119747f; b bVar = finderVideoLayout.J; v.b l55 = vVar.l5((bVar == null || (feedData2 = bVar.f119771a) == null) ? 0 : feedData2.getId()); if (l55 == null) { v.a n55 = finderVideoLayout.f119747f.n5(feedData.getFeedId(), i18); if (n55 != null) { r(q2Var2, finderVideoLayout, n55.f922c); } else { if (q2Var2 != null) { q2Var2.setProgress(0); } finderVideoLayout.M(false); if (q2Var2 != null) { q2Var2.i(finderVideoLayout.getFTPPTag() + "convert"); } b bVar2 = finderVideoLayout.J; if (bVar2 != null) { bVar2.f119778h = false; } if (q2Var2 != null) { q2Var2.o(); } } } else if (l55.f929d && l55.f927b) { r(q2Var2, finderVideoLayout, 0); } } FinderLongVideoPlayerSeekBar finderLongVideoPlayerSeekBar = finderVideoLayout.L; if (finderLongVideoPlayerSeekBar != null) { finderVideoLayout.x(finderLongVideoPlayerSeekBar); } } } public static final void r(q2 q2Var, FinderVideoLayout finderVideoLayout, int i15) { if (q2Var != null) { q2Var.l(true); } if (q2Var != null) { q2Var.setProgress(i15); } finderVideoLayout.M(true); if (q2Var != null) { q2.a.a(q2Var, null, false, 3, null); } b bVar = finderVideoLayout.J; if (bVar != null) { bVar.f119778h = true; } if (q2Var != null) { q2Var.setVisibility(0); } } public void A(boolean z15, boolean z16) { String str; FinderThumbPlayerProxy finderThumbPlayerProxy; boolean z17; long j15; FeedData feedData; FeedData feedData2; FeedData feedData3; FinderThumbPlayerProxy finderThumbPlayerProxy2; FeedData feedData4; c.b videoPlayBehavior; String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("onEnterSeekMode isEnter="); sb5.append(z15); sb5.append(" mediaId="); b bVar = this.J; Float f15 = null; if (bVar != null) { str = bVar.f119772b; } else { str = null; } sb5.append(str); sb5.append(" isPaused:"); Context context = getContext(); m.e(context, "null cannot be cast to non-null type com.tencent.mm.ui.MMActivity"); sb5.append(((MMActivity) context).isPaused()); sb5.append(" isSelectedToPlay:"); sb5.append(this.f119750i); Log.i(fTPPTag, sb5.toString()); b bVar2 = this.J; if (bVar2 != null) { bVar2.f119778h = z15; } long j16 = 0; boolean z18 = true; if (z15) { if (!(bVar2 == null || (videoPlayBehavior = getVideoPlayBehavior()) == null)) { long expectId = bVar2.f119771a.getExpectId(); u0 u0Var = bVar2.f119773c; videoPlayBehavior.z(expectId, u0Var.f315193e, u0Var); } M(z16); r2 r2Var = this.f119762w; if (r2Var instanceof FinderThumbPlayerProxy) { finderThumbPlayerProxy2 = (FinderThumbPlayerProxy) r2Var; } else { finderThumbPlayerProxy2 = null; } if (finderThumbPlayerProxy2 != null) { finderThumbPlayerProxy2.setEnterSeekMode(true); } r2 r2Var2 = this.f119762w; if (r2Var2 != null) { r2Var2.pause(); } v vVar = this.f119747f; b bVar3 = this.J; if (!(bVar3 == null || (feedData4 = bVar3.f119771a) == null)) { j16 = feedData4.getId(); } v.b l55 = vVar.l5(j16); if (l55 != null) { l55.f932g = true; } } else { r2 r2Var3 = this.f119762w; if (r2Var3 instanceof FinderThumbPlayerProxy) { finderThumbPlayerProxy = (FinderThumbPlayerProxy) r2Var3; } else { finderThumbPlayerProxy = null; } boolean z19 = false; if (finderThumbPlayerProxy != null) { finderThumbPlayerProxy.setEnterSeekMode(false); } M(false); r2 r2Var4 = this.f119762w; if (r2Var4 != null) { Context context2 = getContext(); m.e(context2, "null cannot be cast to non-null type com.tencent.mm.ui.MMActivity"); if (((MMActivity) context2).isPaused() || !this.f119750i) { z17 = false; } else { z17 = true; } if (getContext() instanceof FinderHomeUI) { if (z17) { r rVar = r.f342954a; Context context3 = getContext(); m.f(context3, "context"); if (((FinderHomeUIC) rVar.b(context3).a(FinderHomeUIC.class)).getActiveFragment().f118211o == this.G) { z17 = true; } } z17 = false; } r2Var4.setVideoViewFocused(z17); b bVar4 = this.J; if (bVar4 == null || (feedData3 = bVar4.f119771a) == null) { j15 = 0; } else { j15 = feedData3.getFeedId(); } if (this.f119747f.n5(j15, this.G) != null) { E(this, 0, null, null, 7, null); v vVar2 = this.f119747f; b bVar5 = this.J; if (!(bVar5 == null || (feedData2 = bVar5.f119771a) == null)) { j16 = feedData2.getId(); } v.b l56 = vVar2.l5(j16); if (l56 != null) { l56.f932g = false; } if (this.E || getVideoCore().f119732w) { z19 = true; } if (!z19) { z18 = getVideoCore().d2(); } r2Var4.setMute(z18); } else { r2Var4.play(); v vVar3 = this.f119747f; b bVar6 = this.J; if (!(bVar6 == null || (feedData = bVar6.f119771a) == null)) { j16 = feedData.getId(); } v.b l57 = vVar3.l5(j16); if (l57 != null) { l57.f932g = false; } } } } if (!z15) { v vVar4 = this.f119747f; vVar4.getClass(); Log.i("Finder.VideoStateCacheVM", "[clearSeekState]"); vVar4.f916e = null; } String fTPPTag2 = getFTPPTag(); StringBuilder sb6 = new StringBuilder(); sb6.append("[onEnterSeekMode] isEnter="); sb6.append(z15); sb6.append(" alpha="); r2 r2Var5 = this.f119762w; if (r2Var5 != null) { f15 = Float.valueOf(r2Var5.getAlpha()); } sb6.append(f15); sb6.append(" mediaId="); b bVar7 = this.J; m.d(bVar7); sb6.append(bVar7.f119772b); Log.i(fTPPTag2, sb6.toString()); } public final void B() { String str; boolean z15; boolean z16; long j15; float f15; String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onViewRecycled] "); b bVar = this.J; FinderThumbPlayerProxy finderThumbPlayerProxy = null; if (bVar != null) { str = bVar.f119772b; } else { str = null; } sb5.append(str); Log.i(fTPPTag, sb5.toString()); b bVar2 = this.J; int i15 = 0; if (bVar2 == null || !bVar2.f119778h) { z15 = false; } else { z15 = true; } if (z15) { if (bVar2 == null || !bVar2.f119777g) { z16 = false; } else { z16 = true; } if (z16) { v vVar = this.f119747f; m.d(bVar2); long feedId = bVar2.f119771a.getFeedId(); int i16 = this.G; q2 q2Var = this.K; if (q2Var != null) { i15 = q2Var.getCurrentProgress(); } r2 r2Var = this.f119762w; if (r2Var != null) { j15 = r2Var.getCurrentPlayMs(); } else { j15 = 0; } r2 r2Var2 = this.f119762w; if (r2Var2 instanceof FinderThumbPlayerProxy) { finderThumbPlayerProxy = (FinderThumbPlayerProxy) r2Var2; } if (finderThumbPlayerProxy != null) { f15 = finderThumbPlayerProxy.getPlaySpeedRatio(); } else { f15 = 1.0f; } vVar.o5(feedId, i16, i15, j15, f15); } } C(true); this.Q = true; } public final void C(boolean z15) { boolean z16; Boolean bool; boolean z17; boolean z18; c.b videoPlayBehavior; FeedData feedData; long j15; b bVar = this.J; boolean z19 = false; if (bVar == null || bVar.f119777g) { z16 = false; } else { z16 = true; } if (!z16 || z15) { String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[FinderVideoLayout#pause] "); sb5.append(P()); sb5.append(" isForceRemoveVideoView="); sb5.append(z15); sb5.append(" isSeekMode="); b bVar2 = this.J; String str = null; if (bVar2 != null) { bool = Boolean.valueOf(bVar2.f119778h); } else { bool = null; } sb5.append(bool); sb5.append(" media="); b bVar3 = this.J; if (bVar3 != null) { str = bVar3.f119772b; } sb5.append(str); Log.i(fTPPTag, sb5.toString()); b bVar4 = this.J; if (bVar4 != null) { z17 = bVar4.f119778h; } else { z17 = false; } ae c25 = getVideoCore().c2(); if (!z15 || this.A) { z18 = false; } else { z18 = true; } c25.M0(this, z18, z17); s(); b bVar5 = this.J; if (bVar5 != null) { bVar5.f119777g = false; } this.U = -1; if (!(bVar5 == null || (feedData = bVar5.f119771a) == null)) { FeedMegaVideoAnimPlayEvent feedMegaVideoAnimPlayEvent = new FeedMegaVideoAnimPlayEvent(); FeedMegaVideoAnimPlayEvent.a aVar = feedMegaVideoAnimPlayEvent.f62738d; if (feedData.getLocalId() != 0) { j15 = feedData.getLocalId(); } else { j15 = feedData.getFeedId(); } aVar.f62739a = j15; FeedMegaVideoAnimPlayEvent.a aVar2 = feedMegaVideoAnimPlayEvent.f62738d; if (feedData.getLocalId() != 0) { z19 = true; } aVar2.f62740b = z19; FeedMegaVideoAnimPlayEvent.a aVar3 = feedMegaVideoAnimPlayEvent.f62738d; aVar3.f62741c = true; aVar3.f62743e = this.G; feedMegaVideoAnimPlayEvent.publish(); } b bVar6 = this.J; if (bVar6 != null && bVar6.f119773c.f315193e.f42971f == 9 && (videoPlayBehavior = getVideoPlayBehavior()) != null) { long expectId = bVar6.f119771a.getExpectId(); u0 u0Var = bVar6.f119773c; videoPlayBehavior.A(expectId, u0Var.f315193e, bVar6.f119775e, u0Var, null); } } } /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r3v5 */ /* JADX WARN: Type inference failed for: r6v11 */ /* JADX WARN: Type inference failed for: r1v16 */ /* JADX WARN: Type inference failed for: r1v23 */ /* JADX WARN: Type inference failed for: r1v25 */ /* JADX WARN: Type inference failed for: r6v21 */ /* JADX WARN: Type inference failed for: r6v27 */ /* JADX WARN: Type inference failed for: r1v37 */ /* JADX WARN: Type inference failed for: r1v39 */ /* JADX WARN: Type inference failed for: r1v40 */ /* JADX WARN: Type inference failed for: r1v48 */ /* JADX WARN: Type inference failed for: r1v49 */ /* JADX WARN: Type inference failed for: r1v50 */ /* JADX WARN: Type inference failed for: r3v13 */ /* JADX WARN: Type inference failed for: r3v14 */ /* JADX WARN: Type inference failed for: r3v17 */ /* JADX WARN: Type inference failed for: r3v18 */ /* JADX WARN: Type inference failed for: r3v21 */ /* JADX WARNING: Code restructure failed: missing block: B:52:0x0105, code lost: if (r1 != false) goto L_0x010a; */ /* JADX WARNING: Removed duplicated region for block: B:101:0x0237 */ /* JADX WARNING: Removed duplicated region for block: B:109:0x0280 */ /* JADX WARNING: Removed duplicated region for block: B:153:0x0331 */ /* JADX WARNING: Removed duplicated region for block: B:56:0x010d */ /* JADX WARNING: Unknown variable types count: 6 */ public final void D(int i15, d42.a aVar, BaseFinderFeed baseFinderFeed) { ?? r35; int i16; boolean z15; String str; b bVar; ?? r65; String str2; ?? r15; boolean z16; boolean z17; a51 a512; ?? r16; String str3; ?? r17; ez1.u q55; bv1 bv12; ?? r36; FeedData feedData; FeedData feedData2; this.P = i15; ((t32.e6) yz3.j.c(t32.e6.class)).getConfig().f192810z = i15; b bVar2 = this.J; if (bVar2 == null) { Log.w(getFTPPTag(), "play playAdapterPosition:" + i15 + " return for playInfo"); return; } boolean z18 = true; if (bVar2 == null || (feedData2 = bVar2.f119771a) == null || feedData2.getMediaType() != 9) { r35 = false; } else { r35 = true; } if (r35 == true) { b bVar3 = this.J; if (bVar3 == null || (feedData = bVar3.f119771a) == null || feedData.getVrLive() != 1) { r36 = false; } else { r36 = true; } if (r36 == true) { Log.w("Finder.VideoAutoPlayManager", "playSelectedFeed return for vrLiveType"); return; } } b bVar4 = this.J; m.d(bVar4); bVar4.f119771a.setPosition(i15); bVar4.f119771a.setNextFeed(baseFinderFeed); w(bVar4.f119773c, bVar4.f119771a, AssetExtension.SCENE_PLAY); ta.a aVar2 = ta.W0; Context context = getContext(); m.f(context, "this@FinderVideoLayout.context"); ta f15 = aVar2.f(context); if (f15 == null || (q55 = f15.q5(-1)) == null || (bv12 = q55.f210962h) == null) { i16 = 0; } else { i16 = bv12.f17675i; } n0 n0Var = n0.f119185a; String str4 = bVar4.f119772b; String nickname = bVar4.f119771a.getNickname(); m.g(str4, "mediaId"); m.g(nickname, "nickname"); if (i16 > 0) { List<d3> list = n0.f119186b.get(Integer.valueOf(i16)); if (list == null) { list = xg4.e0.f338660d; } d3 d3Var = (d3) c0.R(list, i15); if (d3Var != null) { if (d3Var instanceof BaseFinderFeed) { BaseFinderFeed baseFinderFeed2 = (BaseFinderFeed) d3Var; if (m.b(nickname, baseFinderFeed2.t().getNickName())) { y53 y532 = (y53) c0.Q(baseFinderFeed2.t().getMediaList()); if (y532 == null || (str3 = y532.f42978p) == null) { str3 = "."; } if (y.j(str4, str3, false)) { r17 = true; } else { r17 = false; } } } r16 = false; if (r16 == false) { n0Var.a(this); g.a.b(r32.a.f292946b, "FinderFeedMatcher.check.1", false, null, null, false, false, new l0(i16), 60, null); } } r16 = true; if (r16 == false) { } } r91 liveInfo = bVar4.f119771a.getLiveInfo(); if (!(liveInfo == null || (a512 = liveInfo.f35049p0) == null)) { int i17 = a512.f15928d; int i18 = hb4.u.f225582a; if (i17 == 1 && a512.f15931g != 1) { z15 = true; str = null; FinderThumbPlayerProxy finderThumbPlayerProxy = null; if (this.Q || z15) { String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("isEnablePlay false "); bVar = this.J; if (bVar != null) { str = bVar.f119772b; } sb5.append(str); sb5.append(" isOlympic: "); sb5.append(z15); Log.w(fTPPTag, sb5.toString()); } else if (!getTeenModeTempAuthUIC().j5(i16, bVar4.f119771a.getFeedId())) { Log.w(getFTPPTag(), "is not allow for teenager. just return."); getTeenModeTempAuthUIC().k5(bVar4.f119771a.getFeedId(), ""); return; } else { ep1.m e15 = ep1.i.f208735a.e(bVar4.f119771a.getFeedId()); Log.i("Finder.VideoLayout", "play director: " + e15 + " feedId: " + bVar4.f119771a.getFeedId()); if (!(this.f119762w == null || e15 == null || !(e15 instanceof ep1.f))) { ep1.f fVar = (ep1.f) e15; fVar.g(); r2 r2Var = this.f119762w; m.d(r2Var); if (r2Var.w()) { r2 r2Var2 = this.f119762w; if (r2Var2 == null || !m.b(r2Var2.getVideoMediaId(), bVar4.f119772b)) { z16 = false; } else { z16 = true; } r2 r2Var3 = this.f119762w; m.d(r2Var3); if (r2Var3.getPlayer() != null) { e70.e eVar = fVar.g().f208749g; r2 r2Var4 = this.f119762w; m.d(r2Var4); if (!m.b(eVar, r2Var4.getPlayer())) { z17 = false; boolean z19 = fVar.g().f208729l; boolean z25 = ep1.i.f208737c; Log.i("Finder.VideoLayout", "isFluentFinderLive isSameFeed: " + z16 + " isFluentFinderLive " + z17 + " isFloatWindowExit " + z19 + " isLiveRoomTriggerFinish: " + z25); if (z16 && z17 && !z19 && z25) { r65 = true; if (r65 == true) { r2 r2Var5 = this.f119762w; Log.i("Finder.VideoLayout", "fluent live exit initLiveVideoView media = " + bVar4.f119771a.getFeedId()); if (e15 instanceof ep1.f) { ep1.g j15 = ((ep1.f) e15).g(); e70.e eVar2 = j15.f208749g; if (!(eVar2 == null || r2Var5 == null)) { r2Var5.t(eVar2, j15.f208746d, j15.f208747e, bVar4.f119771a.getFeedId()); } j15.f208749g = null; } r2 r2Var6 = this.f119762w; m.d(r2Var6); p(r2Var6, bVar4.f119773c, bVar4.f119775e); return; } else if (!this.A || this.f119762w == null) { getVideoCore().c2().R3(this, bVar4.f119773c, new g(this, aVar, bVar4)); return; } else { String i19 = bVar4.f119773c.i(); r2 r2Var7 = this.f119762w; if (r2Var7 != null) { str2 = r2Var7.getVideoMediaId(); } else { str2 = null; } if (!m.b(i19, str2)) { r2 r2Var8 = this.f119762w; if (r2Var8 != null) { r2Var8.stop(); } r15 = true; } else { r15 = false; } getVideoCore().c2().I2(this.f119762w); r2 r2Var9 = this.f119762w; if (r2Var9 != null) { r2Var9.setFinderVideoPlayTrace(aVar); } bVar4.f119777g = true; u0 u0Var = bVar4.f119773c; bVar4.f119771a.getExpectId(); boolean z26 = bVar4.f119776f; LinkedList<y53> linkedList = bVar4.f119775e; getVideoCore().getClass(); if (r15 == true) { q2 q2Var = this.K; if (q2Var != null) { q2Var.setVisibility(0); } r2 r2Var10 = this.f119762w; if (r2Var10 != null) { r2Var10.setAlpha(0.0f); } r2 r2Var11 = this.f119762w; if (r2Var11 != null) { F(r2Var11, u0Var, z26, bVar4.f119771a); } } else { r2 r2Var12 = this.f119762w; if (r2Var12 instanceof FinderThumbPlayerProxy) { finderThumbPlayerProxy = (FinderThumbPlayerProxy) r2Var12; } if (finderThumbPlayerProxy == null || finderThumbPlayerProxy.getCurrentPlayState() != 6) { z18 = false; } if (z18) { t(AssetExtension.SCENE_PLAY); } } r2 r2Var13 = this.f119762w; if (r2Var13 != null) { p(r2Var13, u0Var, linkedList); return; } return; } } } } z17 = true; boolean z192 = fVar.g().f208729l; boolean z252 = ep1.i.f208737c; Log.i("Finder.VideoLayout", "isFluentFinderLive isSameFeed: " + z16 + " isFluentFinderLive " + z17 + " isFloatWindowExit " + z192 + " isLiveRoomTriggerFinish: " + z252); r65 = true; if (r65 == true) { } } } r65 = false; if (r65 == true) { } } } } z15 = false; str = null; FinderThumbPlayerProxy finderThumbPlayerProxy2 = null; if (this.Q) { } String fTPPTag2 = getFTPPTag(); StringBuilder sb52 = new StringBuilder(); sb52.append("isEnablePlay false "); bVar = this.J; if (bVar != null) { } sb52.append(str); sb52.append(" isOlympic: "); sb52.append(z15); Log.w(fTPPTag2, sb52.toString()); } @Override // com.tencent.mm.pluginsdk.ui.a.b public void D1(String str, String str2) { Integer num; long j15; FinderThumbPlayerProxy finderThumbPlayerProxy; d42.a aVar; Long l15; FeedData feedData; boolean z15; FeedData feedData2; String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onVideoFirstFrameDraw] videoView="); r2 r2Var = this.f119762w; c0.a aVar2 = null; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" mediaId="); sb5.append(str2); Log.i(fTPPTag, sb5.toString()); t("onVideoFirstFrameDraw"); f0 f0Var = f0.f210657a; int i15 = this.G; String fTPPTag2 = getFTPPTag(); b bVar = this.J; if (bVar == null || (feedData2 = bVar.f119771a) == null) { j15 = 0; } else { j15 = feedData2.getId(); } r2 r2Var2 = this.f119762w; if (r2Var2 instanceof FinderThumbPlayerProxy) { finderThumbPlayerProxy = (FinderThumbPlayerProxy) r2Var2; } else { finderThumbPlayerProxy = null; } if (finderThumbPlayerProxy != null) { aVar = finderThumbPlayerProxy.getVideoPlayTrace(); } else { aVar = null; } m.g(fTPPTag2, "tag"); ConcurrentHashMap<Integer, f0.a> concurrentHashMap = f0.f210663g; f0.a aVar3 = concurrentHashMap.get(Integer.valueOf(i15)); boolean z16 = true; if (aVar3 != null) { long j16 = aVar3.f210684j0; if (j16 == 0 || j16 == j15 || aVar3.f210692q == 0) { z15 = true; } else { z15 = false; } if (!z15) { aVar3 = null; } if (aVar3 != null) { Log.i("Finder.FinderLoadingTimeReporter", "notifyVideoFirstFrame: " + fTPPTag2 + ", feedId=" + m60.d.p(j15)); aVar3.f210692q = e6.c(); if (aVar != null) { String jSONObject = aVar.d().toString(); m.f(jSONObject, "trace.traceToJson().toString()"); aVar3.f210699x = y.q(jSONObject, ",", ";", false); aVar3.f210698w = aVar.f197744d; } f0Var.t(aVar3, i15); concurrentHashMap.remove(Integer.valueOf(i15)); } } ez1.c0 c0Var = ez1.c0.f210608a; b bVar2 = this.J; if (bVar2 == null || (feedData = bVar2.f119771a) == null) { l15 = null; } else { l15 = Long.valueOf(feedData.getId()); } c0Var.getClass(); if (l15 != null) { l15.longValue(); c0.a a15 = c0Var.a(l15.longValue()); if ((a15.f210613c <= 0 && a15.f210611a <= 0) || a15.f210615e != 0) { z16 = false; } if (z16) { aVar2 = a15; } if (aVar2 != null) { aVar2.f210615e = e6.c(); ez1.c0.f210610c.add(aVar2); ez1.c0.f210609b.clear(); } } r rVar = r.f342954a; Context context = getContext(); m.f(context, "context"); FinderHomeUIC finderHomeUIC = (FinderHomeUIC) rVar.b(context).e(FinderHomeUIC.class); if (finderHomeUIC != null) { finderHomeUIC.p5(); } } public final void F(r2 r2Var, u0 u0Var, boolean z15, FeedData feedData) { float f15; int i15; FinderThumbPlayerProxy finderThumbPlayerProxy; ez1.u q55; a.e eVar = a.e.COVER; w(u0Var, feedData, "prepare"); r2Var.setFullScreenEnjoy(this.f119749h); boolean z16 = r2Var instanceof FinderThumbPlayerProxy; if (z16) { FinderThumbPlayerProxy finderThumbPlayerProxy2 = (FinderThumbPlayerProxy) r2Var; finderThumbPlayerProxy2.setMediaPreloadCore$plugin_finder_release(getVideoCore().f119725p); finderThumbPlayerProxy2.setDownloadCallback(this); this.f119765y = this.f119765y; ta.a aVar = ta.W0; Context context = getContext(); m.f(context, "this@FinderVideoLayout.context"); ta f16 = aVar.f(context); if (!(f16 == null || (q55 = f16.q5(-1)) == null || (!(q55 instanceof ez1.o1) && !(q55 instanceof ez1.b0)))) { finderThumbPlayerProxy2.setCommentScene(q55.f210962h.f17675i); } } if (this.f119749h && (r2Var instanceof FinderCropVideoView)) { FinderCropVideoView finderCropVideoView = (FinderCropVideoView) r2Var; finderCropVideoView.setVideoRootWidth(getWidth()); finderCropVideoView.setVideoRootHeight(getHeight()); } if (!r2Var.E()) { r2Var.r(u0Var, z15, feedData); } else { MMTextureViewRender mMTextureViewRender = null; if (z16) { finderThumbPlayerProxy = (FinderThumbPlayerProxy) r2Var; } else { finderThumbPlayerProxy = null; } if (finderThumbPlayerProxy != null) { lf3.a renderView = finderThumbPlayerProxy.getRenderView(); if (renderView instanceof MMTextureViewRender) { mMTextureViewRender = (MMTextureViewRender) renderView; } if (mMTextureViewRender != null) { mMTextureViewRender.setPreloadMode(false); } } } r2Var.setIMMVideoViewCallback(this); if (r2Var instanceof n2) { ((n2) r2Var).setFullscreen(this.f119749h); } boolean z17 = r2Var instanceof p3; if (z17) { ((p3) r2Var).C(true); } boolean z18 = this.f119749h; if (z18 && z17) { r2Var.setScaleType(a.e.CONTAIN); ((p3) r2Var).y(true); } else if (z17) { r2Var.setScaleType(eVar); } else if (z18 || !z16) { r2Var.setScaleType(eVar); } else { r2Var.setScaleType(a.e.CROP); } r2Var.setIOnlineVideoProxy(getVideoCore().f119722j.a(u0Var, this)); if (!this.f119749h) { y53 y532 = u0Var.f315193e; if (y532.f42983t && y532.f42984u != null) { ViewGroup.LayoutParams layoutParams = getLayoutParams(); int i16 = getResources().getDisplayMetrics().widthPixels; layoutParams.width = i16; if (this.f119765y) { a73 a732 = u0Var.f315193e.f42984u; if (a732 != null) { i15 = a732.f16023i; } else { i15 = 0; } layoutParams.height = i15; } else { a73 a733 = u0Var.f315193e.f42984u; if (a733 != null) { f15 = ((float) a733.f16023i) / ((float) a733.f16022h); } else { f15 = 1.1666666f; } if (((double) f15) > 1.1666666666666667d) { layoutParams.height = (int) ((((float) i16) * 3.5f) / 3.0f); } else { layoutParams.height = (int) (((float) i16) * f15); } } setLayoutParams(layoutParams); } } r2Var.x(); r2Var.setIsShowBasicControls(false); r2Var.setLoop(this.f119766z); r2Var.setVideoPlayLifecycle(this.I); r2Var.setVideoMuteListener(this); r2Var.setPreloadedView(false); } public final void G(long j15, String str, int i15, int i16) { FinderSeekEvent finderSeekEvent = new FinderSeekEvent(); FinderSeekEvent.a aVar = finderSeekEvent.f62932d; aVar.f62933a = j15; aVar.f62934b = str; aVar.f62935c = i15; aVar.f62936d = i16; finderSeekEvent.publish(); } public final void H(s2 s2Var) { m.g(s2Var, "callBack"); getVideoCallBackList().remove(s2Var); } public final void I(Runnable runnable) { if (m.b(Looper.getMainLooper().getThread(), Thread.currentThread())) { runnable.run(); } else { post(runnable); } } @Override // com.tencent.mm.pluginsdk.ui.a.b public void I3(String str, String str2, Boolean bool) { Integer num; c.b videoPlayBehavior; boolean booleanValue = bool.booleanValue(); String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onVideoWaiting] videoView="); r2 r2Var = this.f119762w; b bVar = null; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" mediaId="); sb5.append(str2); sb5.append(" thumbVisible="); sb5.append(getThumbView().getVisibility()); Log.i(fTPPTag, sb5.toString()); r2 r2Var2 = this.f119762w; boolean z15 = true; if (r2Var2 == null || !r2Var2.getVideoViewFocused()) { z15 = false; } if (z15 || str == null) { I(new z1(this)); b bVar2 = this.J; if (bVar2 != null) { if (bVar2.f119777g) { bVar = bVar2; } if (bVar != null && (videoPlayBehavior = getVideoPlayBehavior()) != null) { long expectId = bVar.f119771a.getExpectId(); u0 u0Var = bVar.f119773c; videoPlayBehavior.k(expectId, u0Var.f315193e, u0Var, booleanValue); } } } } public final void J(long j15) { q2 q2Var; int i15; FinderThumbPlayerProxy finderThumbPlayerProxy; long j16; float f15; if (this.f119762w != null && (q2Var = this.K) != null) { if (q2Var != null) { i15 = q2Var.getCurrentProgress(); } else { i15 = 0; } r2 r2Var = this.f119762w; FinderThumbPlayerProxy finderThumbPlayerProxy2 = null; if (r2Var instanceof FinderThumbPlayerProxy) { finderThumbPlayerProxy = (FinderThumbPlayerProxy) r2Var; } else { finderThumbPlayerProxy = null; } if (finderThumbPlayerProxy == null) { v.a m55 = this.f119747f.m5(j15, false); if (m55 != null) { j16 = m55.f923d; } else { j16 = 0; } } else if (finderThumbPlayerProxy.isPlaying() || finderThumbPlayerProxy.Z()) { j16 = finderThumbPlayerProxy.getCurrentPlayMs(); } else { j16 = this.V; } r2 r2Var2 = this.f119762w; if (r2Var2 instanceof FinderThumbPlayerProxy) { finderThumbPlayerProxy2 = (FinderThumbPlayerProxy) r2Var2; } if (finderThumbPlayerProxy2 != null) { f15 = finderThumbPlayerProxy2.getPlaySpeedRatio(); } else { f15 = 1.0f; } this.f119747f.p5(j15, this.G, i15, j16, f15); } } @Override // com.tencent.mm.pluginsdk.ui.a.b public void K(String str, String str2) { Integer num; FeedData feedData; String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onVideoEnded] videoView="); r2 r2Var = this.f119762w; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" mediaId="); sb5.append(str2); Log.i(fTPPTag, sb5.toString()); q2 q2Var = this.K; if (q2Var != null) { q2Var.onVideoEnded(); } FinderLongVideoPlayerSeekBar finderLongVideoPlayerSeekBar = this.L; if (finderLongVideoPlayerSeekBar != null) { finderLongVideoPlayerSeekBar.onVideoEnded(); } b bVar = this.J; if (bVar != null && (feedData = bVar.f119771a) != null) { v vVar = this.f119747f; long expectId = feedData.getExpectId(); vVar.f918g.put(Long.valueOf(expectId), Integer.valueOf(vVar.k5(expectId) + 1)); } } public final void M(boolean z15) { I(new h(this, z15)); } public final void N(boolean z15) { if (z15) { A(false, true); } else { A(true, true); } } public final void O(long j15, long j16) { long j17; long j18; long j19; FeedData feedData; long j25 = 0; if (j15 == -1) { r2 r2Var = this.f119762w; if (r2Var != null) { j17 = r2Var.getCurrentPlayMs(); } else { j17 = 0; } } else { j17 = j15; } if (j16 == -1) { r2 r2Var2 = this.f119762w; if (r2Var2 != null) { j18 = r2Var2.getVideoDurationMs(); } else { j18 = 0; } } else { j18 = j16; } long j26 = (long) 1000; int i15 = (int) (j17 / j26); int i16 = (int) (j18 / j26); if (j18 - j17 <= 100) { FeedMegaVideoAnimPlayEvent feedMegaVideoAnimPlayEvent = new FeedMegaVideoAnimPlayEvent(); FeedMegaVideoAnimPlayEvent.a aVar = feedMegaVideoAnimPlayEvent.f62738d; b bVar = this.J; if (!(bVar == null || (feedData = bVar.f119771a) == null)) { j25 = feedData.getExpectId(); } aVar.f62739a = j25; FeedMegaVideoAnimPlayEvent.a aVar2 = feedMegaVideoAnimPlayEvent.f62738d; aVar2.f62744f = true; aVar2.f62743e = this.G; feedMegaVideoAnimPlayEvent.publish(); } q2 q2Var = this.K; if (q2Var != null) { j19 = j17; post(new i(q2Var, j18, this, j17, i15, i16)); } else { j19 = j17; } FinderLongVideoPlayerSeekBar finderLongVideoPlayerSeekBar = this.L; if (finderLongVideoPlayerSeekBar != null) { finderLongVideoPlayerSeekBar.post(new j(finderLongVideoPlayerSeekBar, i16, i15, this)); } Iterator<T> it = getVideoCallBackList().iterator(); while (it.hasNext()) { it.next().C4(j19, j18); } } public final String P() { StringBuilder sb5 = new StringBuilder(); sb5.append("mediaId:"); r2 r2Var = this.f119762w; Float f15 = null; sb5.append(r2Var != null ? r2Var.getVideoMediaId() : null); sb5.append(' '); sb5.append(hashCode()); sb5.append(':'); r2 r2Var2 = this.f119762w; sb5.append(r2Var2 != null ? r2Var2.hashCode() : 0); sb5.append(" alpha="); r2 r2Var3 = this.f119762w; if (r2Var3 != null) { f15 = Float.valueOf(r2Var3.getAlpha()); } sb5.append(f15); return sb5.toString(); } @Override // t32.x5 public void S5(int i15, int i16) { } @Override // com.tencent.mm.pluginsdk.ui.a.b public void T(String str, String str2, String str3, int i15, int i16) { Integer num; c.b videoPlayBehavior; String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onError] videoView="); r2 r2Var = this.f119762w; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" mediaId="); sb5.append(str2); sb5.append(" errorMsg="); sb5.append(str3); sb5.append(" what="); sb5.append(i15); sb5.append(" extra="); sb5.append(i16); Log.i(fTPPTag, sb5.toString()); q2 q2Var = this.K; if (q2Var != null) { q2Var.setVisibility(8); } I(new a2(this)); ((f1) yz3.j.c(f1.class)).getClass(); if (i15 == -21020) { ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 10, 1, false); } else if (i15 == -21009) { ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 9, 1, false); } else if (i15 == -10012) { ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 7, 1, false); } else if (i15 == -10004) { ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 8, 1, false); } else if (i15 == -1010) { ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 4, 1, false); } else if (i15 == -1007) { ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 5, 1, false); } else if (i15 == -1004) { ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 6, 1, false); } else if (i15 == 416) { ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 15, 1, false); } else if (i15 == 502) { ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 14, 1, false); } else if (i15 != 503) { switch (i15) { case 403: ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 12, 1, false); break; case 404: ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 11, 1, false); break; case 405: ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 16, 1, false); break; default: ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 255, 1, false); break; } } else { ww2.d.INSTANCE.idkeyStat((long) 1298, (long) 13, 1, false); } b bVar = this.J; if (bVar != null && (videoPlayBehavior = getVideoPlayBehavior()) != null) { videoPlayBehavior.e(bVar.f119771a.getExpectId(), bVar.f119773c.f315193e, i15); } } @Override // com.tencent.mm.pluginsdk.ui.a.b public void Y(String str, String str2) { Integer num; r2 r2Var = this.f119762w; Integer num2 = null; if (r2Var != null) { num = Integer.valueOf(r2Var.getVideoDuration()); } else { num = null; } String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onPrepared] videoView="); r2 r2Var2 = this.f119762w; if (r2Var2 != null) { num2 = Integer.valueOf(r2Var2.hashCode()); } sb5.append(num2); sb5.append(" mediaId="); sb5.append(str2); sb5.append(" thumbVisible="); sb5.append(getThumbView().getVisibility()); sb5.append(" duration="); sb5.append(num); Log.i(fTPPTag, sb5.toString()); } @Override // com.tencent.mm.pluginsdk.ui.a.b public void Z(String str, String str2) { Integer num; Long l15; FeedData feedData; Activity activity; Window window; String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onVideoPause] videoView="); r2 r2Var = this.f119762w; c0.a aVar = null; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" mediaId="); sb5.append(str2); Log.i(fTPPTag, sb5.toString()); s(); zz1.e.f356376d.getClass(); boolean z15 = false; if (zz1.e.Xb.t().intValue() == 1) { Context context = getContext(); if (context instanceof Activity) { activity = (Activity) context; } else { activity = null; } if (!(activity == null || (window = activity.getWindow()) == null)) { Log.i(getFTPPTag(), "releaseScreenOn"); window.clearFlags(128); } } else { setKeepScreenOn(false); } ez1.c0 c0Var = ez1.c0.f210608a; b bVar = this.J; if (bVar == null || (feedData = bVar.f119771a) == null) { l15 = null; } else { l15 = Long.valueOf(feedData.getId()); } c0Var.getClass(); if (l15 != null) { l15.longValue(); c0.a a15 = c0Var.a(l15.longValue()); if (a15.f210611a > 0 && a15.f210615e == 0 && a15.f210612b == 0) { z15 = true; } if (z15) { aVar = a15; } if (aVar != null) { aVar.f210612b = e6.c(); ez1.c0.f210610c.add(aVar); ez1.c0.f210609b.remove(l15); } } } @Override // p12.q2.b public void a() { boolean z15; b bVar = this.J; boolean z16 = false; if (bVar != null) { r2 r2Var = this.f119762w; if (r2Var != null) { z15 = r2Var.isPlaying(); } else { z15 = false; } bVar.f119781k = !z15; } r2 r2Var2 = this.f119762w; if (r2Var2 != null) { r2Var2.pause(); } b bVar2 = this.J; if (bVar2 != null && !bVar2.f119778h) { z16 = true; } if (z16) { M(true); } } @Override // p12.v2 public void b(boolean z15) { } @Override // p12.b3 public void c(x0 x0Var) { Integer num; long j15; FeedData feedData; boolean z15; FeedData feedData2; c.b videoPlayBehavior; m.g(x0Var, "video"); String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onStartDownload] videoView="); r2 r2Var = this.f119762w; Long l15 = null; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" FinderVideo="); sb5.append(x0Var); sb5.append(" thumbVisible="); sb5.append(getThumbView().getVisibility()); Log.i(fTPPTag, sb5.toString()); I(new p1(this)); b bVar = this.J; if (bVar != null) { if (!bVar.f119777g) { bVar = null; } if (!(bVar == null || (videoPlayBehavior = getVideoPlayBehavior()) == null)) { long expectId = bVar.f119771a.getExpectId(); u0 u0Var = bVar.f119773c; videoPlayBehavior.l(expectId, u0Var.f315193e, u0Var); } } f0 f0Var = f0.f210657a; int i15 = this.G; String fTPPTag2 = getFTPPTag(); b bVar2 = this.J; if (bVar2 == null || (feedData2 = bVar2.f119771a) == null) { j15 = 0; } else { j15 = feedData2.getId(); } m.g(fTPPTag2, "tag"); f0.a aVar = f0.f210663g.get(Integer.valueOf(i15)); if (aVar != null) { long j16 = aVar.f210684j0; if (j16 == 0 || j16 == j15 || aVar.f210689n == 0) { z15 = true; } else { z15 = false; } if (!z15) { aVar = null; } if (aVar != null) { Log.i("Finder.FinderLoadingTimeReporter", "notifyVideoDownload: " + fTPPTag2 + ", feedId=" + m60.d.p(j15)); aVar.f210689n = e6.c(); } } ez1.c0 c0Var = ez1.c0.f210608a; b bVar3 = this.J; if (!(bVar3 == null || (feedData = bVar3.f119771a) == null)) { l15 = Long.valueOf(feedData.getId()); } c0Var.b(l15); } @Override // p12.q2.b public void d(float f15) { Integer num; Integer num2; int i15; bv1 bv12; String str; String str2; String str3; int i16; long j15; Integer num3; String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[seekTo] percent="); sb5.append(f15); sb5.append(" isSeekMode="); sb5.append(y()); sb5.append(" videoView="); r2 r2Var = this.f119762w; Integer num4 = null; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" videoDurationSec="); r2 r2Var2 = this.f119762w; if (r2Var2 != null) { num2 = Integer.valueOf(r2Var2.getVideoDuration()); } else { num2 = null; } sb5.append(num2); Log.i(fTPPTag, sb5.toString()); r2 r2Var3 = this.f119762w; boolean z15 = true; if (r2Var3 != null) { int currentPlaySecond = r2Var3.getCurrentPlaySecond(); r2 r2Var4 = this.f119762w; if (r2Var4 != null) { i15 = r2Var4.getVideoDuration(); } else { i15 = 1; } float f16 = (float) i15; float a15 = y2.a.a(f15 * f16, 0.0f, f16 - 1.0f); if (Math.abs(((float) currentPlaySecond) - a15) > 1.0f && r2Var3.B((double) a15, !y(), getDefaultSeekMode())) { this.T = a15; String fTPPTag2 = getFTPPTag(); StringBuilder sb6 = new StringBuilder(); sb6.append("[seekTo] successfully seek to "); sb6.append(a15); sb6.append(" videoDurationSec="); r2 r2Var5 = this.f119762w; if (r2Var5 != null) { num3 = Integer.valueOf(r2Var5.getVideoDuration()); } else { num3 = null; } sb6.append(num3); Log.i(fTPPTag2, sb6.toString()); } u uVar = this.H; if (uVar != null) { uVar.a((int) a15); } b bVar = this.J; if (bVar != null) { if (!bVar.f119777g) { bVar = null; } if (bVar != null) { c.b videoPlayBehavior = getVideoPlayBehavior(); if (videoPlayBehavior != null) { long expectId = bVar.f119771a.getExpectId(); u0 u0Var = bVar.f119773c; videoPlayBehavior.q(expectId, u0Var.f315193e, currentPlaySecond, (int) a15, u0Var); } int i17 = (int) a15; G(bVar.f119771a.getExpectId(), r2Var3.getVideoMediaId(), currentPlaySecond, i17); ta.a aVar = ta.W0; Context context = getContext(); m.f(context, "context"); ta f17 = aVar.f(context); if (f17 != null) { bv12 = f17.l0(); } else { bv12 = null; } z81.g gVar = (z81.g) yz3.j.c(z81.g.class); wg4.l[] lVarArr = new wg4.l[12]; lVarArr[0] = new wg4.l("view_id", "finder_feed_progress_bar"); if (bv12 != null) { str = bv12.f17670d; } else { str = null; } lVarArr[1] = new wg4.l("behaviour_session_id", str); if (bv12 != null) { str2 = bv12.f17671e; } else { str2 = null; } lVarArr[2] = new wg4.l("finder_context_id", str2); if (bv12 != null) { str3 = bv12.f17672f; } else { str3 = null; } lVarArr[3] = new wg4.l("finder_tab_context_id", str3); if (bv12 != null) { num4 = Integer.valueOf(bv12.f17675i); } lVarArr[4] = new wg4.l("comment_scene", num4); lVarArr[5] = new wg4.l("feed_id", m60.d.p(bVar.f119771a.getExpectId())); if (this.f119747f.k5(bVar.f119771a.getExpectId()) > 0) { i16 = 1; } else { i16 = 0; } lVarArr[6] = new wg4.l("is_pcr90", Integer.valueOf(i16)); lVarArr[7] = new wg4.l("is_pause", Integer.valueOf(bVar.f119781k ? 1 : 0)); lVarArr[8] = new wg4.l("time_point_before_dpb", Integer.valueOf(currentPlaySecond)); lVarArr[9] = new wg4.l("time_point_after_dpb", Integer.valueOf(i17)); r2 r2Var6 = this.f119762w; if (r2Var6 != null) { j15 = r2Var6.getVideoDurationMs(); } else { j15 = 0; } lVarArr[10] = new wg4.l("video_duration_time", Long.valueOf(j15)); lVarArr[11] = new wg4.l("screen_type", 2); gVar.YB("drag_feed_progress_bar", r0.f(lVarArr), 25496); } } } b bVar2 = this.J; if (bVar2 == null || bVar2.f119778h) { z15 = false; } if (z15) { M(false); } } @Override // com.tencent.mm.pluginsdk.ui.a.b public void d6(String str, String str2, int i15, int i16, int i17) { c.b videoPlayBehavior; b bVar = this.J; if (bVar != null) { if (!bVar.f119777g) { bVar = null; } if (bVar != null && (videoPlayBehavior = getVideoPlayBehavior()) != null) { long expectId = bVar.f119771a.getExpectId(); u0 u0Var = bVar.f119773c; videoPlayBehavior.o(expectId, u0Var.f315193e, u0Var, i15, i16, i17); } } } @Override // p12.b3 public void e(String str, int i15, int i16) { c.b videoPlayBehavior; m.g(str, "mediaId"); b bVar = this.J; if (bVar != null) { if (!bVar.f119777g) { bVar = null; } if (bVar != null && (videoPlayBehavior = getVideoPlayBehavior()) != null) { long expectId = bVar.f119771a.getExpectId(); u0 u0Var = bVar.f119773c; videoPlayBehavior.t(expectId, u0Var.f315193e, i15, i16, u0Var); } } } /* JADX WARNING: Removed duplicated region for block: B:20:0x009f */ /* JADX WARNING: Removed duplicated region for block: B:25:? A[RETURN, SYNTHETIC] */ @Override // p12.b3 public void g(int i15, int i16, x0 x0Var) { Integer num; boolean z15; c.b videoPlayBehavior; m.g(x0Var, "video"); String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onProgressDownload] videoView="); r2 r2Var = this.f119762w; b bVar = null; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" offset="); sb5.append(i15); sb5.append(" total="); sb5.append(i16); sb5.append(" video="); sb5.append(((u0) x0Var).i()); Log.i(fTPPTag, sb5.toString()); b bVar2 = this.J; if (bVar2 != null) { if (bVar2.f119777g) { bVar = bVar2; } if (!(bVar == null || (videoPlayBehavior = getVideoPlayBehavior()) == null)) { long expectId = bVar.f119771a.getExpectId(); u0 u0Var = bVar.f119773c; videoPlayBehavior.x(expectId, u0Var.f315193e, i15, i16, u0Var); } } zz1.e.f356376d.getClass(); if (!((Boolean) ((vl1.a) ((n) zz1.e.f356531p1).getValue()).t()).booleanValue()) { zz1.e.f356376d.getClass(); if (!((Boolean) zz1.e.f356544q1.t()).booleanValue()) { z15 = false; if (!z15) { PreloadProcessChangeEvent preloadProcessChangeEvent = new PreloadProcessChangeEvent(); preloadProcessChangeEvent.f63953d.f63954a = x0Var.f().f42978p; preloadProcessChangeEvent.f63953d.f63955b = (int) ((((float) i15) * 100.0f) / ((float) i16)); b02.g gVar = b02.g.f9748a; String str = x0Var.f().f42978p; if (str == null) { str = ""; } pu1.o1 c15 = b02.g.c(gVar, str, true, false, 4, null); PreloadProcessChangeEvent.a aVar = preloadProcessChangeEvent.f63953d; aVar.f63959f = c15.field_fileFormat; aVar.f63958e = c15.field_hasPlayed; preloadProcessChangeEvent.publish(); return; } return; } } z15 = true; if (!z15) { } } public final Bitmap getBitmap() { Bitmap bitmap; r2 r2Var = this.f119762w; if (r2Var != null && (bitmap = r2Var.getBitmap()) != null) { return bitmap; } Drawable drawable = getThumbView().getDrawable(); BitmapDrawable bitmapDrawable = drawable instanceof BitmapDrawable ? (BitmapDrawable) drawable : null; if (bitmapDrawable != null) { return bitmapDrawable.getBitmap(); } return null; } public final u getBulletLifecycle() { return this.H; } public long getCurrentPosMs() { r2 r2Var = this.f119762w; if (r2Var != null) { return r2Var.getCurrentPlayMs(); } return 0; } public int getCurrentPosSec() { r2 r2Var = this.f119762w; if (r2Var != null) { return r2Var.getCurrentPlaySecond(); } return 0; } public final String getFTPPTag() { return String.valueOf(this.f119745d); } public final h2 getLifecycle() { return this.I; } public final FinderLongVideoPlayerSeekBar getLongVideoSeekBar() { return this.L; } public final int getPlayAdapterPosition() { return this.P; } public final im1.c getPlayEventSubscriber() { return getVideoCore().f119724o; } public final b getPlayInfo() { return this.J; } public final View getRetryBtn() { Object value = this.C.getValue(); m.f(value, "<get-retryBtn>(...)"); return (View) value; } public final boolean getReuseSamePlayer() { return this.A; } public final q2 getSeekBarLayout() { return this.K; } /* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: kh4.p<? super java.lang.Boolean, ? super com.tencent.mm.plugin.finder.video.FinderVideoLayout$b, wg4.b0>, kh4.p<java.lang.Boolean, com.tencent.mm.plugin.finder.video.FinderVideoLayout$b, wg4.b0> */ public final p<Boolean, b, b0> getThumbShowCallback() { return this.N; } public final FinderVideoCore getVideoCore() { FinderVideoCore finderVideoCore = this.f119763x; if (finderVideoCore != null) { return finderVideoCore; } m.p("videoCore"); throw null; } public int getVideoDurationSec() { r2 r2Var = this.f119762w; if (r2Var != null) { return r2Var.getVideoDuration(); } return 0; } /* JADX DEBUG: Type inference failed for r0v0. Raw type applied. Possible types: kh4.p<? super java.lang.Boolean, ? super com.tencent.mm.plugin.finder.video.FinderVideoLayout$b, wg4.b0>, kh4.p<java.lang.Boolean, com.tencent.mm.plugin.finder.video.FinderVideoLayout$b, wg4.b0> */ public final p<Boolean, b, b0> getVideoPauseCallback() { return this.M; } public final c.b getVideoPlayBehavior() { im1.c cVar = getVideoCore().f119724o; if (cVar != null) { return new im1.d(cVar); } return null; } public final r2 getVideoView() { return this.f119762w; } @Override // p12.b3 public void h(x0 x0Var, vi.j jVar, vi.f fVar) { Integer num; c.b videoPlayBehavior; m.g(x0Var, "video"); String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onStopDownload] videoView="); r2 r2Var = this.f119762w; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" FinderVideo="); sb5.append(x0Var); sb5.append(" thumbVisible="); sb5.append(getThumbView().getVisibility()); Log.i(fTPPTag, sb5.toString()); b bVar = this.J; if (bVar != null && (videoPlayBehavior = getVideoPlayBehavior()) != null) { long expectId = bVar.f119771a.getExpectId(); u0 u0Var = bVar.f119773c; videoPlayBehavior.y(expectId, u0Var.f315193e, jVar, fVar, u0Var); } } @Override // p12.b3 public void i(int i15, int i16, x0 x0Var, boolean z15) { Integer num; long j15; Long l15; FeedData feedData; FeedData feedData2; m.g(x0Var, "video"); String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onMoovReadyDownload] videoView="); r2 r2Var = this.f119762w; c0.a aVar = null; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" offset="); sb5.append(i15); sb5.append(" total="); sb5.append(i16); sb5.append(" video="); sb5.append(x0Var); sb5.append(" moovFirstDownloaded="); sb5.append(z15); Log.i(fTPPTag, sb5.toString()); b bVar = this.J; boolean z16 = true; if (bVar != null) { if (!bVar.f119777g) { bVar = null; } if (bVar != null) { j2 j2Var = j2.f210779a; String str = bVar.f119773c.f315193e.f42978p; if (str == null) { str = ""; } j2.a aVar2 = j2.f210780b.get(str); if (aVar2 != null) { aVar2.f210789i = !z15; aVar2.f210788h = e6.c(); } c.b videoPlayBehavior = getVideoPlayBehavior(); if (videoPlayBehavior != null) { long expectId = bVar.f119771a.getExpectId(); u0 u0Var = bVar.f119773c; videoPlayBehavior.i(expectId, u0Var.f315193e, i15, i16, u0Var); } } } f0 f0Var = f0.f210657a; int i17 = this.G; String fTPPTag2 = getFTPPTag(); b bVar2 = this.J; if (bVar2 == null || (feedData2 = bVar2.f119771a) == null) { j15 = 0; } else { j15 = feedData2.getId(); } f0Var.i(i17, fTPPTag2, j15, false); ez1.c0 c0Var = ez1.c0.f210608a; b bVar3 = this.J; if (bVar3 == null || (feedData = bVar3.f119771a) == null) { l15 = null; } else { l15 = Long.valueOf(feedData.getId()); } c0Var.getClass(); if (l15 != null) { l15.longValue(); c0.a a15 = c0Var.a(l15.longValue()); if (a15.f210613c <= 0 || a15.f210614d != 0) { z16 = false; } if (z16) { aVar = a15; } if (aVar != null) { aVar.f210614d = e6.c(); } } } @Override // p12.b3 public void k(int i15, x0 x0Var, vi.f fVar) { Integer num; c.b videoPlayBehavior; m.g(x0Var, "video"); String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onFinishDownload] ret="); sb5.append(i15); sb5.append(" videoView="); r2 r2Var = this.f119762w; b bVar = null; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" FinderVideo="); sb5.append(x0Var); Log.i(fTPPTag, sb5.toString()); s(); b bVar2 = this.J; if (bVar2 != null) { if (bVar2.f119777g) { bVar = bVar2; } if (!(bVar == null || (videoPlayBehavior = getVideoPlayBehavior()) == null)) { long expectId = bVar.f119771a.getExpectId(); u0 u0Var = bVar.f119773c; videoPlayBehavior.m(expectId, u0Var.f315193e, i15, fVar, u0Var); } } if (i15 < 0) { I(new a2(this)); } } @Override // com.tencent.mm.pluginsdk.ui.a.b public void k0(String str, String str2, int i15, int i16) { String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onGetVideoSize] videoView="); r2 r2Var = this.f119762w; sb5.append(r2Var != null ? Integer.valueOf(r2Var.hashCode()) : null); sb5.append(" mediaId="); sb5.append(str2); sb5.append(" width="); sb5.append(i15); sb5.append(" height="); sb5.append(i16); Log.i(fTPPTag, sb5.toString()); } /* JADX WARNING: Code restructure failed: missing block: B:53:0x0139, code lost: if (r0 == null) goto L_0x013b; */ @Override // com.tencent.mm.pluginsdk.ui.a.b public void m0(String str, String str2) { int i15; Integer num; Boolean bool; boolean z15; Long l15; long j15; FeedData feedData; FeedData feedData2; Activity activity; Window window; boolean z16; FeedData feedData3; FinderThumbPlayerProxy finderThumbPlayerProxy; FinderThumbPlayerProxy finderThumbPlayerProxy2; b0 b0Var; r2 r2Var = this.f119762w; boolean z17 = false; if (r2Var != null) { i15 = r2Var.getVideoDuration(); } else { i15 = 0; } String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onVideoPlay] videoView="); r2 r2Var2 = this.f119762w; f0.a aVar = null; if (r2Var2 != null) { num = Integer.valueOf(r2Var2.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" mediaId="); sb5.append(str2); sb5.append(" duration="); sb5.append(i15); sb5.append(" isHasPlayed="); b bVar = this.J; if (bVar != null) { bool = Boolean.valueOf(bVar.f119779i); } else { bool = null; } sb5.append(bool); Log.i(fTPPTag, sb5.toString()); b bVar2 = this.J; if (bVar2 == null || bVar2.f119779i) { z15 = false; } else { z15 = true; } if (!z15) { if (bVar2 == null || !bVar2.f119779i) { z16 = false; } else { z16 = true; } if (z16) { t("VideoPlayLifecycle.onPlay"); } } else if (!(bVar2 == null || (feedData3 = bVar2.f119771a) == null)) { long feedId = feedData3.getFeedId(); v.a m55 = this.f119747f.m5(feedId, true); if (m55 != null) { r2 r2Var3 = this.f119762w; if (r2Var3 != null) { float a15 = y2.a.a(((float) m55.f923d) / 1000.0f, 0.0f, ((float) i15) - 1.0f); if (o((long) a15, m55.f925f, "onVideoPlay") == a.SEEK_SILENTLY && m55.f921b == this.G) { int currentPlaySecond = r2Var3.getCurrentPlaySecond(); Log.i(getFTPPTag(), "onVideoPlay: auto seek silently, feedId = " + m60.d.p(feedId) + ", seekTime = " + a15 + ", currentPlay=" + currentPlaySecond); q2 q2Var = this.K; if (q2Var != null) { q2Var.setProgress(m55.f922c); } r2Var3.a((double) a15, !y()); u uVar = this.H; if (uVar != null) { uVar.a((int) a15); } b bVar3 = this.J; if (bVar3 != null) { if (!bVar3.f119777g) { bVar3 = null; } if (bVar3 != null) { c.b videoPlayBehavior = getVideoPlayBehavior(); if (videoPlayBehavior != null) { long expectId = bVar3.f119771a.getExpectId(); u0 u0Var = bVar3.f119773c; videoPlayBehavior.q(expectId, u0Var.f315193e, currentPlaySecond, (int) a15, u0Var); } G(bVar3.f119771a.getExpectId(), r2Var3.getVideoMediaId(), currentPlaySecond, (int) a15); } } } } r2 r2Var4 = this.f119762w; if (r2Var4 instanceof FinderThumbPlayerProxy) { finderThumbPlayerProxy2 = (FinderThumbPlayerProxy) r2Var4; } else { finderThumbPlayerProxy2 = null; } if (finderThumbPlayerProxy2 != null) { finderThumbPlayerProxy2.setPlaySpeed(m55.f924e); b0Var = b0.f332794a; } else { b0Var = null; } } r2 r2Var5 = this.f119762w; if (r2Var5 instanceof FinderThumbPlayerProxy) { finderThumbPlayerProxy = (FinderThumbPlayerProxy) r2Var5; } else { finderThumbPlayerProxy = null; } if (finderThumbPlayerProxy != null) { finderThumbPlayerProxy.setPlaySpeed(1.0f); b0 b0Var2 = b0.f332794a; } } b bVar4 = this.J; if (bVar4 != null) { bVar4.f119779i = true; } s(); I(new p1(this)); zz1.e.f356376d.getClass(); if (zz1.e.Xb.t().intValue() == 1) { Context context = getContext(); if (context instanceof Activity) { activity = (Activity) context; } else { activity = null; } if (!(activity == null || (window = activity.getWindow()) == null)) { Log.i(getFTPPTag(), "keepScreenOn"); window.addFlags(128); } } else { setKeepScreenOn(true); } this.T = -1.0f; O(-1, -1); ez1.c0 c0Var = ez1.c0.f210608a; b bVar5 = this.J; if (bVar5 == null || (feedData2 = bVar5.f119771a) == null) { l15 = null; } else { l15 = Long.valueOf(feedData2.getId()); } c0Var.c(l15); f0 f0Var = f0.f210657a; int i16 = this.G; String fTPPTag2 = getFTPPTag(); b bVar6 = this.J; if (bVar6 == null || (feedData = bVar6.f119771a) == null) { j15 = 0; } else { j15 = feedData.getId(); } m.g(fTPPTag2, "tag"); f0.a aVar2 = f0.f210663g.get(Integer.valueOf(i16)); if (aVar2 != null) { long j16 = aVar2.f210684j0; if (j16 == 0 || j16 == j15 || aVar2.f210691p == 0) { z17 = true; } if (z17) { aVar = aVar2; } if (aVar != null) { Log.i("Finder.FinderLoadingTimeReporter", "notifyVideoPlay: " + fTPPTag2 + ", feedId=" + m60.d.p(j15)); aVar.f210691p = e6.c(); } } } public final void n(s2 s2Var) { m.g(s2Var, "callBack"); getVideoCallBackList().add(s2Var); } public final a o(long j15, long j16, String str) { boolean z15; long j17; int i15; long j18; long j19; int i16; String str2; FeedData feedData; u0 u0Var; y53 y532; FeedData feedData2; a aVar = a.NO_SEEK; a aVar2 = a.SEEK_SILENTLY; m.g(str, "source"); if (!getAutoSeekIsOpen()) { Log.i(getFTPPTag(), "checkAutoSeek: is close"); return aVar2; } q2 q2Var = this.K; if (q2Var != null) { int i17 = 0; if (q2Var == null || q2Var.k()) { z15 = false; } else { z15 = true; } if (!z15) { b bVar = this.J; if (bVar == null || (feedData2 = bVar.f119771a) == null) { j17 = 0; } else { j17 = feedData2.getFeedId(); } if (j17 != 0) { if (j16 <= 0 || System.currentTimeMillis() - j16 <= ((long) (getAutoSeekLocalInterval() * 1000))) { int videoDurationSec = getVideoDurationSec(); if (videoDurationSec == 0) { b bVar2 = this.J; if (!(bVar2 == null || (u0Var = bVar2.f119773c) == null || (y532 = u0Var.f315193e) == null)) { i17 = y532.f42972g; } i15 = i17; } else { i15 = videoDurationSec; } int currentPosSec = getCurrentPosSec(); String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("checkAutoSeek: source = "); sb5.append(str); sb5.append(", feedId = "); b bVar3 = this.J; if (bVar3 == null || (feedData = bVar3.f119771a) == null) { j18 = 0; } else { j18 = feedData.getFeedId(); } sb5.append(m60.d.p(j18)); sb5.append(", seekTime="); sb5.append(j15); sb5.append(", currDuration="); sb5.append(currentPosSec); sb5.append(", totalDuration="); sb5.append(i15); sb5.append(", autoSeekHeadThreshold="); sb5.append(getAutoSeekHeadThreshold()); sb5.append(", autoSeekTailThreshold="); sb5.append(getAutoSeekTailThreshold()); sb5.append(", autoSeekRollbackTime="); sb5.append(getAutoSeekRollbackTime()); sb5.append(", autoSeekIntervalThreshold="); sb5.append(getAutoSeekIntervalThreshold()); Log.i(fTPPTag, sb5.toString()); long autoSeekRollbackTime = j15 - ((long) getAutoSeekRollbackTime()); if (autoSeekRollbackTime < 0) { j19 = 0; } else { j19 = autoSeekRollbackTime; } if (j19 <= 0 || j15 <= ((long) getAutoSeekHeadThreshold()) || ((long) i15) - j15 <= ((long) getAutoSeekTailThreshold()) || (m.b("getCommentDetail", str) && Math.abs(((long) currentPosSec) - j15) < ((long) getAutoSeekIntervalThreshold()))) { return aVar; } L(this, j19 * 1000, 3, 0.0f, !y(), null, 20, null); q2 q2Var2 = this.K; if (q2Var2 != null) { q2Var2.h((int) j19, i15); } b bVar4 = this.J; if (bVar4 != null) { if (!bVar4.f119777g) { bVar4 = null; } if (bVar4 != null) { c.b videoPlayBehavior = getVideoPlayBehavior(); if (videoPlayBehavior != null) { long expectId = bVar4.f119771a.getExpectId(); u0 u0Var2 = bVar4.f119773c; i16 = currentPosSec; videoPlayBehavior.q(expectId, u0Var2.f315193e, i16, (int) j15, u0Var2); } else { i16 = currentPosSec; } long expectId2 = bVar4.f119771a.getExpectId(); r2 r2Var = this.f119762w; if (r2Var != null) { str2 = r2Var.getVideoMediaId(); } else { str2 = null; } G(expectId2, str2, i16, (int) j15); } } return a.SEEK_NORMAL; } Log.i(getFTPPTag(), "checkAutoSeek: record to old, diff = " + (System.currentTimeMillis() - j16) + " autoSeekLocalInterval = " + getAutoSeekLocalInterval() + ", recordTimestamp = " + j16); return aVar; } } } return aVar2; } public void onAttachedToWindow() { String str; super.onAttachedToWindow(); String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("onAttachedToWindow "); b bVar = this.J; if (bVar != null) { str = bVar.f119772b; } else { str = null; } sb5.append(str); Log.i(fTPPTag, sb5.toString()); getVideoCore().c2().Y4(this.f119759t); } public void onDetachedFromWindow() { String str; boolean z15; super.onDetachedFromWindow(); String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onDetachedFromWindow] "); b bVar = this.J; if (bVar != null) { str = bVar.f119772b; } else { str = null; } sb5.append(str); Log.i(fTPPTag, sb5.toString()); b bVar2 = this.J; m.d(bVar2); J(bVar2.f119771a.getFeedId()); C(!this.f119749h); getVideoCore().c2().W2(this.f119759t); b bVar3 = this.J; if (bVar3 != null) { q2 q2Var = this.K; if (q2Var != null) { z15 = q2Var.n(); } else { z15 = false; } bVar3.f119778h = z15; } } @Override // com.tencent.mm.pluginsdk.ui.a.b public void onSeekComplete(ITPPlayer iTPPlayer) { } public void onViewAdded(View view) { m.g(view, "child"); super.onViewAdded(view); if (view instanceof r2) { String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onViewAdded] isPreviewing="); r2 r2Var = (r2) view; sb5.append(r2Var.g()); sb5.append(' '); sb5.append(P()); Log.i(fTPPTag, sb5.toString()); if (r2Var.g()) { setVisibility(0); } } } public void onViewRemoved(View view) { String str; long j15; FinderThumbPlayerProxy finderThumbPlayerProxy; float f15; m.g(view, "child"); super.onViewRemoved(view); if (m.b(view, this.f119762w) && (view instanceof r2)) { String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onViewRemoved] isPreviewing="); r2 r2Var = (r2) view; sb5.append(r2Var.g()); sb5.append(' '); sb5.append(P()); Log.i(fTPPTag, sb5.toString()); q2 q2Var = this.K; if (q2Var != null) { q2Var.o(); } b bVar = this.J; boolean z15 = true; int i15 = 0; if (bVar == null || !bVar.f119778h) { z15 = false; } if (z15) { v vVar = this.f119747f; m.d(bVar); long feedId = bVar.f119771a.getFeedId(); int i16 = this.G; q2 q2Var2 = this.K; if (q2Var2 != null) { i15 = q2Var2.getCurrentProgress(); } r2 r2Var2 = this.f119762w; if (r2Var2 != null) { j15 = r2Var2.getCurrentPlayMs(); } else { j15 = 0; } r2 r2Var3 = this.f119762w; if (r2Var3 instanceof FinderThumbPlayerProxy) { finderThumbPlayerProxy = (FinderThumbPlayerProxy) r2Var3; } else { finderThumbPlayerProxy = null; } if (finderThumbPlayerProxy != null) { f15 = finderThumbPlayerProxy.getPlaySpeedRatio(); } else { f15 = 1.0f; } vVar.o5(feedId, i16, i15, j15, f15); } b bVar2 = this.J; m.d(bVar2); J(bVar2.f119771a.getFeedId()); if (r2Var.g()) { setVisibility(4); return; } String fTPPTag2 = getFTPPTag(); StringBuilder sb6 = new StringBuilder(); sb6.append("[videoView = null] mediaId="); b bVar3 = this.J; if (bVar3 != null) { str = bVar3.f119772b; } else { str = null; } sb6.append(str); Log.i(fTPPTag2, sb6.toString()); I(new b2(this)); s(); this.f119762w = null; } } public final void p(r2 r2Var, u0 u0Var, LinkedList<y53> linkedList) { FinderThumbPlayerProxy finderThumbPlayerProxy; Boolean bool; Boolean bool2; boolean z15; FeedData feedData; FeedData feedData2; Log.i(getFTPPTag(), "checkVideoLivePlay isSeekMode:" + y()); boolean z16 = r2Var instanceof FinderThumbPlayerProxy; if (z16) { finderThumbPlayerProxy = (FinderThumbPlayerProxy) r2Var; } else { finderThumbPlayerProxy = null; } if (finderThumbPlayerProxy != null) { finderThumbPlayerProxy.setEnterSeekMode(y()); } long j15 = 0; boolean z17 = false; boolean z18 = true; if (!y()) { r2Var.setVideoViewFocused(true); f0 f0Var = f0.f210657a; int i15 = this.G; String fTPPTag = getFTPPTag(); b bVar = this.J; if (!(bVar == null || (feedData2 = bVar.f119771a) == null)) { j15 = feedData2.getId(); } f0Var.i(i15, fTPPTag, j15, true); if (o1.a.a(r2Var, null, 1, null)) { Log.i(getFTPPTag(), "[FinderVideoLayout#start] layout=[" + getWidth() + ':' + getHeight() + "] videoView=[" + getWidth() + ':' + getHeight() + "] video=[" + u0Var.f315193e.f42973h + ':' + u0Var.f315193e.f42974i + "] " + P() + " media=" + u0Var + " mediaList=" + linkedList.size() + ' '); s(); } if (this.E || getVideoCore().f119732w) { z17 = true; } if (!z17) { z18 = getVideoCore().d2(); } r2Var.setMute(z18); return; } v vVar = this.f119747f; b bVar2 = this.J; if (!(bVar2 == null || (feedData = bVar2.f119771a) == null)) { j15 = feedData.getId(); } v.b l55 = vVar.l5(j15); String fTPPTag2 = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("checkVideoLivePlay firstPlay:"); if (l55 != null) { bool = Boolean.valueOf(l55.f929d); } else { bool = null; } sb5.append(bool); sb5.append(" isPauseOnStart:"); if (l55 != null) { bool2 = Boolean.valueOf(l55.f927b); } else { bool2 = null; } sb5.append(bool2); Log.i(fTPPTag2, sb5.toString()); if (l55 == null || !l55.f929d) { z15 = false; } else { z15 = true; } if (z15 && z16 && l55.f927b) { r2Var.setVideoViewFocused(true); o1.a.a(r2Var, null, 1, null); l55.f929d = false; r2Var.setIsShouldPlayResume(false); } } public final void s() { I(new c(this)); } public final void setBulletLifecycle(u uVar) { this.H = uVar; } public final void setEnablePlay(boolean z15) { this.Q = z15; } public final void setEnableShowLoading(boolean z15) { this.f119746e = z15; } public final void setLongVideo(boolean z15) { this.f119765y = z15; } public final void setLongVideoSeekBar(FinderLongVideoPlayerSeekBar finderLongVideoPlayerSeekBar) { this.L = finderLongVideoPlayerSeekBar; } public final void setLoop(boolean z15) { this.f119766z = z15; } public final void setMute(boolean z15) { this.E = z15; } public final void setPlayAdapterPosition(int i15) { this.P = i15; } public final void setPlayInfo(b bVar) { this.J = bVar; } public final void setPreRenderFirstFrame(boolean z15) { this.F = z15; } public final void setReuseSamePlayer(boolean z15) { this.A = z15; } public final void setSeekBarLayout(q2 q2Var) { this.K = q2Var; } public final void setSelectedToPlay(boolean z15) { this.f119750i = z15; } public final void setThumbShowCallback(p<? super Boolean, ? super b, b0> pVar) { this.N = pVar; } public final void setVideoCore(FinderVideoCore finderVideoCore) { m.g(finderVideoCore, "<set-?>"); this.f119763x = finderVideoCore; } public final void setVideoPauseCallback(p<? super Boolean, ? super b, b0> pVar) { this.M = pVar; } public final void setVideoView(r2 r2Var) { this.f119762w = r2Var; } public final void t(String str) { I(new d(this, str)); } public final u0 u(long j15, String str, y53 y532) { u0 c15 = wx1.d.f335498a.c(j15, y532, false); String fTPPTag = getFTPPTag(); Log.i(fTPPTag, "[findBestVideo] feedId=" + m60.d.p(j15) + " mediaId=" + str + " videoFlag=" + c15.g()); return c15; } public final void w(u0 u0Var, FeedData feedData, String str) { String str2; String valueOf = String.valueOf(hashCode()); int position = feedData.getPosition(); y53 y532 = u0Var.f315193e; if (y532 == null || (str2 = y532.f42978p) == null) { str2 = ""; } String p15 = m60.d.p(feedData.getFeedId()); String description = feedData.getDescription(); String nickName = feedData.getNickName(); StringBuilder sb5 = new StringBuilder(); sb5.append("FVLT."); sb5.append(position); sb5.append('.'); o0 o0Var = o0.f119203a; sb5.append(o0Var.c(description)); sb5.append('.'); m.g(valueOf, "hashCode"); sb5.append(o0Var.d(valueOf, 0, 4)); String sb6 = sb5.toString(); this.f119745d = sb6; Log.i(sb6, "initFTPPTag from " + str + " pos:" + position + " mediaId:" + str2 + " feedId:" + p15 + " nickName:" + nickName + " description:" + description + " finderVideoLayoutHashCode:" + valueOf); } public final void x(FinderLongVideoPlayerSeekBar finderLongVideoPlayerSeekBar) { m.g(finderLongVideoPlayerSeekBar, "seekBar"); int i15 = 0; finderLongVideoPlayerSeekBar.setVisibility(0); finderLongVideoPlayerSeekBar.setPlayBtnOnClickListener(new e(finderLongVideoPlayerSeekBar, this)); r2 r2Var = this.f119762w; if (r2Var != null) { i15 = r2Var.getVideoDuration(); } finderLongVideoPlayerSeekBar.setVideoTotalTime(i15); finderLongVideoPlayerSeekBar.setIsPlay(true); finderLongVideoPlayerSeekBar.setIplaySeekCallback(new f(finderLongVideoPlayerSeekBar, this)); setOnTouchListener(new p12.r0(this, finderLongVideoPlayerSeekBar)); } public final boolean y() { b bVar = this.J; if (bVar == null || !bVar.f119778h) { return false; } return true; } public final boolean z() { r2 r2Var = this.f119762w; if (r2Var != null) { return r2Var.isPlaying(); } return false; } @Override // com.tencent.mm.pluginsdk.ui.a.b public void z5(String str, String str2, boolean z15) { Integer num; c.b videoPlayBehavior; String fTPPTag = getFTPPTag(); StringBuilder sb5 = new StringBuilder(); sb5.append("[onVideoWaitingEnd] videoView="); r2 r2Var = this.f119762w; if (r2Var != null) { num = Integer.valueOf(r2Var.hashCode()); } else { num = null; } sb5.append(num); sb5.append(" mediaId="); sb5.append(str2); sb5.append(" isCancelLoading:"); sb5.append(z15); Log.i(fTPPTag, sb5.toString()); if (z15) { s(); } b bVar = this.J; if (bVar != null && (videoPlayBehavior = getVideoPlayBehavior()) != null) { long expectId = bVar.f119771a.getExpectId(); u0 u0Var = bVar.f119773c; videoPlayBehavior.j(expectId, u0Var.f315193e, u0Var); } } /* JADX INFO: super call moved to the top of the method (can break code semantics) */ public FinderVideoLayout(Context context, AttributeSet attributeSet, int i15) { super(context, attributeSet, i15); m.g(context, "context"); setTag("Finder.VideoLayout"); setId(R.id.e_k); setImportantForAccessibility(2); j0 a15 = r.f342954a.e(FinderCommonFeatureService.class).a(v.class); m.f(a15, "UICProvider.of(FinderCom…StateCacheVM::class.java)"); this.f119747f = (v) a15; this.f119748g = wg4.h.a(new s1(this)); this.f119751j = wg4.h.a(i1.f279940d); this.f119752n = wg4.h.a(n1.f279980d); this.f119753o = wg4.h.a(m1.f279977d); this.f119754p = wg4.h.a(j1.f279957d); this.f119756q = wg4.h.a(l1.f279966d); this.f119757r = wg4.h.a(k1.f279961d); this.f119758s = wg4.h.a(e2.f279924d); this.f119759t = new u1(this); this.f119760u = wg4.h.a(new t1(this)); this.f119761v = wg4.h.a(new d2(this)); this.f119766z = true; this.B = new LinkedList<>(); this.C = wg4.h.a(new x1(this)); this.D = wg4.h.a(new f2(this)); this.I = new r1(this); this.Q = true; this.R = wg4.h.a(new c2(this)); this.T = -1.0f; this.U = -1; this.f119755p0 = 1; this.f119764x0 = 1.0f; } }