正在查看: FanCode v7.24.0 应用的 VideoSource.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: FanCode v7.24.0 应用的 VideoSource.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fancode.video.base;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import android.view.View;
import com.fancode.video.csl.SessionDetails;
import com.fancode.video.drm.DRMDetails;
import com.fancode.video.j;
import com.fancode.video.models.NetworkProtocol;
import com.fancode.video.models.PlayerType;
import com.fancode.video.models.VideoType;
import com.newrelic.agent.android.analytics.AnalyticsAttribute;
import com.newrelic.agent.android.logging.MessageValidator;
import java.lang.ref.WeakReference;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class VideoSource implements Parcelable {
private boolean A;
private WeakReference<View> B;
private WMDetails C;
private Integer D;
@NotNull
private List<String> E;
@NotNull
private Map<String, String> a;
@NotNull
private Map<String, Object> b;
@NotNull
private Map<String, String> c;
private String d;
private String e;
private String i;
private String k;
private String n;
private DRMDetails o;
private SessionDetails p;
@NotNull
private SSAI q;
@NotNull
private CSAI r;
@NotNull
private String s;
private String t;
private Uri u;
@NotNull
private PlayerType v;
private URL w;
@NotNull
private VideoType x;
private Integer y;
private String z;
@NotNull
public static final a F = new a(null);
@NotNull
public static final Parcelable.Creator<VideoSource> CREATOR = new b();
@Metadata
public static final class a {
private a() {
}
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private final VideoSource b(String str, VideoType videoType, Map<String, String> map) {
VideoSource videoSource = new VideoSource(null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0 == true ? 1 : 0, null, null, null, null, null, false, null, null, null, null, 33554431, null);
videoSource.h0(videoType);
videoSource.f0(str);
if (map != null) {
videoSource.p().putAll(map);
}
return videoSource;
}
@NotNull
public final VideoSource a(@NotNull String str, @NotNull VideoType videoType) {
Intrinsics.checkNotNullParameter(str, "urlString");
Intrinsics.checkNotNullParameter(videoType, "videoType");
return b(str, videoType, null);
}
}
@Metadata
public static final class b implements Parcelable.Creator<VideoSource> {
@Override
@NotNull
public final VideoSource createFromParcel(@NotNull Parcel parcel) {
Intrinsics.checkNotNullParameter(parcel, "parcel");
int readInt = parcel.readInt();
LinkedHashMap linkedHashMap = new LinkedHashMap(readInt);
for (int i = 0; i != readInt; i++) {
linkedHashMap.put(parcel.readString(), parcel.readString());
}
int readInt2 = parcel.readInt();
LinkedHashMap linkedHashMap2 = new LinkedHashMap(readInt2);
for (int i2 = 0; i2 != readInt2; i2++) {
linkedHashMap2.put(parcel.readString(), parcel.readValue(VideoSource.class.getClassLoader()));
}
int readInt3 = parcel.readInt();
LinkedHashMap linkedHashMap3 = new LinkedHashMap(readInt3);
for (int i3 = 0; i3 != readInt3; i3++) {
linkedHashMap3.put(parcel.readString(), parcel.readString());
}
return new VideoSource(linkedHashMap, linkedHashMap2, linkedHashMap3, parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readString(), parcel.readInt() == 0 ? null : DRMDetails.CREATOR.createFromParcel(parcel), parcel.readInt() == 0 ? null : SessionDetails.CREATOR.createFromParcel(parcel), (SSAI) parcel.readParcelable(VideoSource.class.getClassLoader()), (CSAI) parcel.readParcelable(VideoSource.class.getClassLoader()), parcel.readString(), parcel.readString(), (Uri) parcel.readParcelable(VideoSource.class.getClassLoader()), PlayerType.valueOf(parcel.readString()), (URL) parcel.readSerializable(), VideoType.valueOf(parcel.readString()), parcel.readInt() == 0 ? null : Integer.valueOf(parcel.readInt()), parcel.readString(), parcel.readInt() != 0, (WeakReference) parcel.readValue(VideoSource.class.getClassLoader()), parcel.readInt() == 0 ? null : WMDetails.CREATOR.createFromParcel(parcel), parcel.readInt() == 0 ? null : Integer.valueOf(parcel.readInt()), parcel.createStringArrayList());
}
@Override
@NotNull
public final VideoSource[] newArray(int i) {
return new VideoSource[i];
}
}
public VideoSource() {
this(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, false, null, null, null, null, 33554431, null);
}
public VideoSource(@NotNull Map<String, String> map, @NotNull Map<String, Object> map2, @NotNull Map<String, String> map3, String str, String str2, String str3, String str4, String str5, DRMDetails dRMDetails, SessionDetails sessionDetails, @NotNull SSAI ssai, @NotNull CSAI csai, @NotNull String str6, String str7, Uri uri, @NotNull PlayerType playerType, URL url, @NotNull VideoType videoType, Integer num, String str8, boolean z, WeakReference<View> weakReference, WMDetails wMDetails, Integer num2, @NotNull List<String> list) {
Intrinsics.checkNotNullParameter(map, "requestHeaders");
Intrinsics.checkNotNullParameter(map2, "contextParams");
Intrinsics.checkNotNullParameter(map3, "extraData");
Intrinsics.checkNotNullParameter(ssai, "ssai");
Intrinsics.checkNotNullParameter(csai, "csai");
Intrinsics.checkNotNullParameter(str6, "networkProtocol");
Intrinsics.checkNotNullParameter(playerType, "playerType");
Intrinsics.checkNotNullParameter(videoType, "videoType");
Intrinsics.checkNotNullParameter(list, "followupUrls");
this.a = map;
this.b = map2;
this.c = map3;
this.d = str;
this.e = str2;
this.i = str3;
this.k = str4;
this.n = str5;
this.o = dRMDetails;
this.p = sessionDetails;
this.q = ssai;
this.r = csai;
this.s = str6;
this.t = str7;
this.u = uri;
this.v = playerType;
this.w = url;
this.x = videoType;
this.y = num;
this.z = str8;
this.A = z;
this.B = weakReference;
this.C = wMDetails;
this.D = num2;
this.E = list;
map.put("referer", "https://fancode.com/");
}
private final boolean A() {
String str = this.t;
return (str == null || qd.a.a.a(str)) ? false : true;
}
public final boolean B() {
return this.u != null;
}
public final boolean C() {
URL url = this.w;
return (url == null || qd.a.a.a(String.valueOf(url))) ? false : true;
}
public final boolean E() {
return this.r.d() && Intrinsics.areEqual(this.r.e(), CSAI.d.a());
}
public final boolean F() {
return this.r.d() && Intrinsics.areEqual(this.r.e(), CSAI.d.b());
}
public final boolean G() {
return this.b.containsKey(AnalyticsAttribute.CONTENT_TYPE_ATTRIBUTE) && Intrinsics.areEqual("LIVE", this.b.get(AnalyticsAttribute.CONTENT_TYPE_ATTRIBUTE));
}
public final boolean H() {
return this.q.c() && Intrinsics.areEqual(this.q.d(), SSAI.d.a());
}
public final boolean I() {
String str = this.d;
return (str != null && !qd.a.a.a(str) && this.q.c() && Intrinsics.areEqual(this.q.d(), SSAI.d.a())) || C() || B();
}
public final void J(String str) {
this.d = str;
}
public final void K(String str) {
this.e = str;
}
public final void L(@NotNull Map<String, Object> map) {
Intrinsics.checkNotNullParameter(map, "<set-?>");
this.b = map;
}
public final void M(@NotNull CSAI csai) {
Intrinsics.checkNotNullParameter(csai, "<set-?>");
this.r = csai;
}
public final void N(String str) {
this.k = str;
}
public final void P(DRMDetails dRMDetails) {
this.o = dRMDetails;
}
public final void R(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "<set-?>");
this.s = str;
}
public final void S(WeakReference<View> weakReference) {
this.B = weakReference;
}
public final void X(@NotNull PlayerType playerType) {
Intrinsics.checkNotNullParameter(playerType, "<set-?>");
this.v = playerType;
}
public final void Y(String str) {
this.n = str;
}
public final String a() {
return this.d;
}
public final void a0(SessionDetails sessionDetails) {
this.p = sessionDetails;
}
public final String b() {
return this.e;
}
public final void b0(boolean z) {
this.A = z;
}
@NotNull
public final Map<String, Object> c() {
return this.b;
}
public final void c0(@NotNull SSAI ssai) {
Intrinsics.checkNotNullParameter(ssai, "<set-?>");
this.q = ssai;
}
@NotNull
public final CSAI d() {
return this.r;
}
public final void d0(String str) {
this.i = str;
}
@Override
public int describeContents() {
return 0;
}
public final String e() {
return this.k;
}
public final void e0(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "urlString");
this.u = Uri.parse(str);
}
public boolean equals(Object obj) {
if (obj == null || !(obj instanceof VideoSource)) {
return false;
}
String v = v();
String v2 = ((VideoSource) obj).v();
j.e().f().log(2, "VideoSource", "Host uniqueId" + v + " otherUniqueId" + v2);
return Intrinsics.areEqual(v, v2);
}
public final void f0(@NotNull String str) {
Intrinsics.checkNotNullParameter(str, "urlString");
URL url = new URL(str);
this.w = url;
Intrinsics.checkNotNull(url);
String protocol = url.getProtocol();
URL url2 = this.w;
Intrinsics.checkNotNull(url2);
String host = url2.getHost();
URL url3 = this.w;
Intrinsics.checkNotNull(url3);
this.t = protocol + "://" + host + url3.getPath();
}
public final DRMDetails g() {
return this.o;
}
public final void g0(int i) {
this.D = Integer.valueOf(i);
}
public final Integer h() {
return this.y;
}
public final void h0(@NotNull VideoType videoType) {
Intrinsics.checkNotNullParameter(videoType, "<set-?>");
this.x = videoType;
}
public int hashCode() {
return v().length() > 0 ? v().hashCode() : super.hashCode();
}
@NotNull
public final Map<String, String> i() {
return this.c;
}
public final void i0(WMDetails wMDetails) {
this.C = wMDetails;
}
@NotNull
public final List<String> j() {
return this.E;
}
@NotNull
public final String k() {
return this.s;
}
public final WeakReference<View> l() {
return this.B;
}
@NotNull
public final String m() {
return A() ? String.valueOf(this.t) : "";
}
@NotNull
public final PlayerType n() {
return this.v;
}
public final String o() {
return this.n;
}
@NotNull
public final Map<String, String> p() {
return this.a;
}
public final SessionDetails q() {
return this.p;
}
public final boolean r() {
return this.A;
}
@NotNull
public final SSAI s() {
return this.q;
}
@NotNull
public String toString() {
return "VideoSource(requestHeaders=" + this.a + ", contextParams=" + this.b + ", extraData=" + this.c + ", assetKey=" + this.d + ", contentId=" + this.e + ", title=" + this.i + ", description=" + this.k + ", posterUrl=" + this.n + ", drmDetails=" + this.o + ", sessionDetails=" + this.p + ", ssai=" + this.q + ", csai=" + this.r + ", networkProtocol=" + this.s + ", pathUrl=" + this.t + ", uri=" + this.u + ", playerType=" + this.v + ", url=" + this.w + ", videoType=" + this.x + ", duration=" + this.y + ", subTitle=" + this.z + ", shouldCache=" + this.A + ", obsView=" + this.B + ", wmDetails=" + this.C + ", videoHashKey=" + this.D + ", followupUrls=" + this.E + ")";
}
public final String u() {
return this.i;
}
@NotNull
public final String v() {
String str;
String str2;
String str3 = this.e;
String valueOf = str3 != null ? String.valueOf(str3) : "";
String str4 = C() ? this.w : B() ? this.u : "";
String str5 = this.d;
if (str5 == null) {
str5 = "";
}
DRMDetails dRMDetails = this.o;
if (dRMDetails != null) {
Intrinsics.checkNotNull(dRMDetails);
str = dRMDetails.c();
} else {
str = "";
}
SessionDetails sessionDetails = this.p;
if (sessionDetails == null || (str2 = sessionDetails.b()) == null) {
str2 = "";
}
Integer num = this.D;
return valueOf + str4 + str5 + str + str2 + (num != null ? String.valueOf(num) : "");
}
public final Uri w() {
return this.u;
}
@Override
public void writeToParcel(@NotNull Parcel parcel, int i) {
Intrinsics.checkNotNullParameter(parcel, "out");
Map<String, String> map = this.a;
parcel.writeInt(map.size());
for (Map.Entry<String, String> entry : map.entrySet()) {
parcel.writeString(entry.getKey());
parcel.writeString(entry.getValue());
}
Map<String, Object> map2 = this.b;
parcel.writeInt(map2.size());
for (Map.Entry<String, Object> entry2 : map2.entrySet()) {
parcel.writeString(entry2.getKey());
parcel.writeValue(entry2.getValue());
}
Map<String, String> map3 = this.c;
parcel.writeInt(map3.size());
for (Map.Entry<String, String> entry3 : map3.entrySet()) {
parcel.writeString(entry3.getKey());
parcel.writeString(entry3.getValue());
}
parcel.writeString(this.d);
parcel.writeString(this.e);
parcel.writeString(this.i);
parcel.writeString(this.k);
parcel.writeString(this.n);
DRMDetails dRMDetails = this.o;
if (dRMDetails == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
dRMDetails.writeToParcel(parcel, i);
}
SessionDetails sessionDetails = this.p;
if (sessionDetails == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
sessionDetails.writeToParcel(parcel, i);
}
parcel.writeParcelable(this.q, i);
parcel.writeParcelable(this.r, i);
parcel.writeString(this.s);
parcel.writeString(this.t);
parcel.writeParcelable(this.u, i);
parcel.writeString(this.v.name());
parcel.writeSerializable(this.w);
parcel.writeString(this.x.name());
Integer num = this.y;
if (num == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeInt(num.intValue());
}
parcel.writeString(this.z);
parcel.writeInt(this.A ? 1 : 0);
parcel.writeValue(this.B);
WMDetails wMDetails = this.C;
if (wMDetails == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
wMDetails.writeToParcel(parcel, i);
}
Integer num2 = this.D;
if (num2 == null) {
parcel.writeInt(0);
} else {
parcel.writeInt(1);
parcel.writeInt(num2.intValue());
}
parcel.writeStringList(this.E);
}
@NotNull
public final String x() {
return C() ? String.valueOf(this.w) : "";
}
@NotNull
public final VideoType y() {
return this.x;
}
public final WMDetails z() {
return this.C;
}
public VideoSource(Map map, Map map2, Map map3, String str, String str2, String str3, String str4, String str5, DRMDetails dRMDetails, SessionDetails sessionDetails, SSAI ssai, CSAI csai, String str6, String str7, Uri uri, PlayerType playerType, URL url, VideoType videoType, Integer num, String str8, boolean z, WeakReference weakReference, WMDetails wMDetails, Integer num2, List list, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? new HashMap() : map, (i & 2) != 0 ? new HashMap() : map2, (i & 4) != 0 ? new HashMap() : map3, (i & 8) != 0 ? null : str, (i & 16) != 0 ? null : str2, (i & 32) != 0 ? null : str3, (i & 64) != 0 ? null : str4, (i & 128) != 0 ? null : str5, (i & 256) != 0 ? null : dRMDetails, (i & 512) != 0 ? null : sessionDetails, (i & 1024) != 0 ? new SSAI(false, null, false, 7, null) : ssai, (i & 2048) != 0 ? new CSAI(false, null, false, 7, null) : csai, (i & AnalyticsAttribute.ATTRIBUTE_VALUE_MAX_LENGTH) != 0 ? NetworkProtocol.HTTP1 : str6, (i & 8192) != 0 ? null : str7, (i & 16384) != 0 ? null : uri, (i & MessageValidator.MAX_MESSAGE_LEN) != 0 ? PlayerType.FANCODE : playerType, (i & 65536) != 0 ? null : url, (i & 131072) != 0 ? VideoType.HLS : videoType, (i & 262144) != 0 ? 0 : num, (i & 524288) != 0 ? null : str8, (i & 1048576) == 0 ? z : false, (i & 2097152) != 0 ? null : weakReference, (i & 4194304) != 0 ? null : wMDetails, (i & 8388608) != 0 ? null : num2, (i & 16777216) != 0 ? new ArrayList() : list);
}
}