正在查看: 24Six v66.1.24 应用的 ActivityVideoPlayer2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 24Six v66.1.24 应用的 ActivityVideoPlayer2.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package app.tfs.activity;
import L0.h;
import L0.i;
import Y.F;
import Y.N;
import android.app.Activity;
import android.app.PictureInPictureParams;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.util.Rational;
import androidx.media3.common.Player;
import androidx.media3.ui.PlayerView;
import app.tfs.activity.ActivityVideoPlayer2;
import app.tfs.media.AppMediaService;
import b0.k;
import h.n;
import j.C0539e;
import kotlin.jvm.internal.g;
import kotlin.jvm.internal.m;
public final class ActivityVideoPlayer2 extends c {
public static final a f405u = new a(null);
private C0539e f406r;
private boolean f407s;
private final h f408t = i.a(new Y0.a() {
public final Object invoke() {
Y.F P;
P = ActivityVideoPlayer2.P(ActivityVideoPlayer2.this);
return P;
}
});
public static final class a {
public a(g gVar) {
this();
}
private a() {
}
}
public static final class b extends Z.a {
b() {
}
public void onNext(N n2) {
m.e(n2, "rbMediaState");
ActivityVideoPlayer2.this.I(n2.l() && n2.e() != null);
}
public void onSubscribe(m0.c cVar) {
m.e(cVar, "d");
ActivityVideoPlayer2.this.l(cVar);
}
}
private final F N() {
return (F) this.f408t.getValue();
}
private final void O() {
C0539e c0539e = this.f406r;
if (c0539e == null) {
m.w("viewBinding");
c0539e = null;
}
c0539e.b.setSystemUiVisibility(4871);
}
public static final F P(ActivityVideoPlayer2 activityVideoPlayer2) {
return new F(activityVideoPlayer2, AppMediaService.class);
}
public static final void Q(ActivityVideoPlayer2 activityVideoPlayer2, boolean z2) {
activityVideoPlayer2.finish();
}
public static final void R(ActivityVideoPlayer2 activityVideoPlayer2, boolean z2) {
activityVideoPlayer2.finish();
}
private final void S(Activity activity) {
PictureInPictureParams.Builder aspectRatio;
PictureInPictureParams build;
try {
n.a();
aspectRatio = h.m.a().setAspectRatio(new Rational(16, 9));
build = aspectRatio.build();
activity.enterPictureInPictureMode(build);
} catch (Throwable th) {
k.d("ActivityVideoPlayer2", "Pip mode Failed", th);
}
}
public String m() {
return "ActivityVideoPlayer2";
}
@Override
protected void onCreate(Bundle bundle) {
Intent intent;
Bundle extras;
super.onCreate(bundle);
C0539e c = C0539e.c(getLayoutInflater());
this.f406r = c;
C0539e c0539e = null;
if (c == null) {
m.w("viewBinding");
c = null;
}
setContentView(c.getRoot());
C0539e c0539e2 = this.f406r;
if (c0539e2 == null) {
m.w("viewBinding");
} else {
c0539e = c0539e2;
}
c0539e.b.setFullscreenButtonClickListener(new PlayerView.FullscreenButtonClickListener() {
@Override
public final void onFullscreenButtonClick(boolean z2) {
ActivityVideoPlayer2.Q(ActivityVideoPlayer2.this, z2);
}
});
if (Build.VERSION.SDK_INT >= 26 && (intent = getIntent()) != null && (extras = intent.getExtras()) != null && extras.getBoolean("EXTRA_FOR_PIP", false)) {
this.f407s = true;
}
N().O().observeOn(k0.c.d()).subscribe(new b());
}
@Override
protected void onDestroy() {
C0539e c0539e = this.f406r;
if (c0539e == null) {
m.w("viewBinding");
c0539e = null;
}
c0539e.b.setUseController(false);
C0539e c0539e2 = this.f406r;
if (c0539e2 == null) {
m.w("viewBinding");
c0539e2 = null;
}
c0539e2.b.setPlayer(null);
super.onDestroy();
}
public void onPictureInPictureModeChanged(boolean z2, Configuration configuration) {
Intent intent;
Bundle extras;
m.e(configuration, "newConfig");
this.f407s = z2;
super/*androidx.activity.ComponentActivity*/.onPictureInPictureModeChanged(z2, configuration);
if (!this.f407s && (intent = getIntent()) != null && (extras = intent.getExtras()) != null && extras.getBoolean("EXTRA_FOR_PIP", false)) {
finish();
return;
}
C0539e c0539e = null;
if (this.f407s) {
C0539e c0539e2 = this.f406r;
if (c0539e2 == null) {
m.w("viewBinding");
c0539e2 = null;
}
c0539e2.b.setFullscreenButtonClickListener(null);
return;
}
C0539e c0539e3 = this.f406r;
if (c0539e3 == null) {
m.w("viewBinding");
} else {
c0539e = c0539e3;
}
c0539e.b.setFullscreenButtonClickListener(new PlayerView.FullscreenButtonClickListener() {
@Override
public final void onFullscreenButtonClick(boolean z3) {
ActivityVideoPlayer2.R(ActivityVideoPlayer2.this, z3);
}
});
}
@Override
protected void onResume() {
super.onResume();
Player player = z().d;
C0539e c0539e = this.f406r;
C0539e c0539e2 = null;
if (c0539e == null) {
m.w("viewBinding");
c0539e = null;
}
c0539e.b.setPlayer(player);
C0539e c0539e3 = this.f406r;
if (c0539e3 == null) {
m.w("viewBinding");
} else {
c0539e2 = c0539e3;
}
c0539e2.b.setUseController(true);
}
@Override
protected void onStart() {
super.onStart();
O();
}
protected void onUserLeaveHint() {
super/*android.app.Activity*/.onUserLeaveHint();
S(this);
}
}