forked from qidian55/bilibilitv1.6.6-repair
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
qidian55
committed
Jun 10, 2024
1 parent
e73f7ae
commit 1cdd44b
Showing
100 changed files
with
13,647 additions
and
8,061 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package bl; | ||
|
||
import android.text.TextUtils; | ||
import com.bilibili.tv.player.basic.context.PlayerParams; | ||
import com.bilibili.tv.player.basic.context.ResolveResourceParams; | ||
|
||
/* compiled from: BL */ | ||
/* loaded from: classes.dex */ | ||
public class abg { | ||
public static String a() { | ||
jx b = js.b("buffering_water_test"); | ||
return (!b.b() || b.a() == null || TextUtils.isEmpty(b.a().b())) ? "0" : b.a().c(); | ||
} | ||
|
||
public static int a(yh yhVar) { | ||
if (yhVar.a == null) { | ||
return 0; | ||
} | ||
if (yhVar.b) { | ||
return 3; | ||
} | ||
return yhVar.a.isLive() ? 2 : 1; | ||
} | ||
|
||
public static String b(yh yhVar) { | ||
int intValue = ((Integer) aah.a(yhVar.a).a("bundle_key_player_params_jump_from", -1)).intValue(); | ||
if (yhVar.a.isBangumi()) { | ||
return "p" + String.valueOf(intValue); | ||
} | ||
return "u" + String.valueOf(intValue); | ||
} | ||
|
||
public static int c(yh yhVar) { | ||
ResolveResourceParams obtainResolveParams = yhVar.a.mVideoParams.obtainResolveParams(); | ||
int i = ((Boolean) aah.a(yhVar.a).a("is_auto_play", false)).booleanValue() ? 1 : 0; | ||
if (((Boolean) aah.a(yhVar.a).a("is_auto_landscape", false)).booleanValue()) { | ||
i |= 2; | ||
} | ||
if (((Boolean) obtainResolveParams.mExtraParams.a("is_flash_media_resource", false)).booleanValue()) { | ||
i |= 4; | ||
} | ||
return ((Boolean) obtainResolveParams.mExtraParams.a("is_player_preload", false)).booleanValue() ? i | 16 : i; | ||
} | ||
|
||
public static long a(PlayerParams playerParams) { | ||
return playerParams.mVideoParams.obtainResolveParams().mCid; | ||
} | ||
|
||
public static String b() { | ||
return abc.b().i(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package bl; | ||
|
||
import bl.pe; | ||
import bl.pk; | ||
import com.bilibili.lib.media.resolver.params.ResolveMediaResourceParams; | ||
import com.bilibili.lib.media.resolver.params.ResolveResourceExtra; | ||
import com.bilibili.lib.media.resource.MediaResource; | ||
|
||
/* compiled from: BL */ | ||
/* loaded from: classes.dex */ | ||
public class pi implements pe.a<String, MediaResource> { | ||
private pk a; | ||
private pk.a b; | ||
|
||
private pi(pk pkVar, pk.a aVar) { | ||
this.a = pkVar; | ||
this.b = aVar; | ||
} | ||
|
||
public static pi a(pk pkVar, pk.a aVar) { | ||
return new pi(pkVar, aVar); | ||
} | ||
|
||
public pk c() { | ||
return this.a; | ||
} | ||
|
||
public pk.a d() { | ||
return this.b; | ||
} | ||
|
||
@Override // bl.pe.a | ||
public boolean a() { | ||
return !"movie".equalsIgnoreCase(this.b.b().b()); | ||
} | ||
|
||
@Override // bl.pe.a | ||
/* renamed from: e, reason: merged with bridge method [inline-methods] */ | ||
public String b() { | ||
ResolveMediaResourceParams b = this.b.b(); | ||
ResolveResourceExtra d = this.b.d(); | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append(b.c()); | ||
sb.append(b.b()); | ||
sb.append(b.e()); | ||
sb.append(b.d()); | ||
sb.append(d != null && d.f()); | ||
return sb.toString(); | ||
} | ||
|
||
@Override // bl.pe.a | ||
public boolean a(MediaResource mediaResource) { | ||
return mediaResource.c(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
package bl; | ||
|
||
import android.os.SystemClock; | ||
import com.bilibili.lib.media.resolver.exception.ResolveException; | ||
import com.bilibili.lib.media.resolver.exception.ResolveMediaSourceException; | ||
import com.bilibili.lib.media.resource.MediaResource; | ||
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
|
||
/* compiled from: BL */ | ||
/* loaded from: classes.dex */ | ||
public class qx { | ||
private String a; | ||
private String b; | ||
private String c; | ||
private long d; | ||
private long e; | ||
|
||
public qx(String str, String str2, long i) { | ||
this.a = qs.a(str + (System.currentTimeMillis() / 1000)); | ||
this.b = str2; | ||
this.c = String.valueOf(i); | ||
} | ||
|
||
public void a() { | ||
try { | ||
this.d = SystemClock.elapsedRealtime(); | ||
JSONObject jSONObject = new JSONObject(); | ||
jSONObject.put("f_session", this.a); | ||
jSONObject.put("f_from", this.b); | ||
jSONObject.put("f_cid", this.c); | ||
jSONObject.put("f_time_of_session", 0); | ||
jSONObject.put("f_event", -100); | ||
qu.a("app_lua_tracker", jSONObject.toString()); | ||
} catch (JSONException e) { | ||
att.a(e); | ||
} | ||
} | ||
|
||
public void b() { | ||
a(0); | ||
} | ||
|
||
public void a(int i) { | ||
try { | ||
JSONObject jSONObject = new JSONObject(); | ||
jSONObject.put("f_session", this.a); | ||
jSONObject.put("f_from", this.b); | ||
jSONObject.put("f_cid", this.c); | ||
jSONObject.put("f_time_of_session", 0); | ||
jSONObject.put("f_event", -2); | ||
if (i != 0) { | ||
jSONObject.put("f_error", i); | ||
} | ||
qu.a("app_lua_tracker", jSONObject.toString()); | ||
} catch (JSONException e) { | ||
att.a(e); | ||
} | ||
} | ||
|
||
public void a(String str) { | ||
try { | ||
long elapsedRealtime = SystemClock.elapsedRealtime(); | ||
this.e = elapsedRealtime; | ||
JSONObject jSONObject = new JSONObject(); | ||
jSONObject.put("f_session", this.a); | ||
jSONObject.put("f_from", this.b); | ||
jSONObject.put("f_cid", this.c); | ||
jSONObject.put("f_time_of_session", elapsedRealtime - this.d); | ||
jSONObject.put("f_event", -3); | ||
jSONObject.put("f_url", str); | ||
qu.a("app_lua_tracker", jSONObject.toString()); | ||
} catch (JSONException e) { | ||
att.a(e); | ||
} | ||
} | ||
|
||
public void a(int i, byte[] bArr) { | ||
try { | ||
long elapsedRealtime = SystemClock.elapsedRealtime(); | ||
JSONObject jSONObject = new JSONObject(); | ||
jSONObject.put("f_session", this.a); | ||
jSONObject.put("f_from", this.b); | ||
jSONObject.put("f_cid", this.c); | ||
jSONObject.put("f_time_of_session", elapsedRealtime - this.d); | ||
jSONObject.put("f_time_of_event", elapsedRealtime - this.e); | ||
jSONObject.put("f_event", -4); | ||
if (i != 200) { | ||
jSONObject.put("f_error", i); | ||
jSONObject.put("f_body", bArr); | ||
} | ||
qu.a("app_lua_tracker", jSONObject.toString()); | ||
} catch (JSONException e) { | ||
att.a(e); | ||
} | ||
} | ||
|
||
public void a(MediaResource mediaResource) { | ||
try { | ||
long elapsedRealtime = SystemClock.elapsedRealtime(); | ||
int a = mediaResource.a(); | ||
JSONObject jSONObject = new JSONObject(); | ||
jSONObject.put("f_session", this.a); | ||
jSONObject.put("f_from", this.b); | ||
jSONObject.put("f_cid", this.c); | ||
jSONObject.put("f_time_of_session", elapsedRealtime - this.d); | ||
jSONObject.put("f_event", -5); | ||
jSONObject.put("f_videos_count", a); | ||
if (a == 0) { | ||
jSONObject.put("f_error", 0); | ||
jSONObject.put("f_body", mediaResource.b().toString()); | ||
} | ||
qu.a("app_lua_tracker", jSONObject.toString()); | ||
} catch (JSONException e) { | ||
att.a(e); | ||
} | ||
} | ||
|
||
public void b(String str) { | ||
a((ResolveException) null, str); | ||
} | ||
|
||
public void a(ResolveException resolveException, String str) { | ||
try { | ||
long elapsedRealtime = SystemClock.elapsedRealtime(); | ||
JSONObject jSONObject = new JSONObject(); | ||
jSONObject.put("f_session", this.a); | ||
jSONObject.put("f_from", this.b); | ||
jSONObject.put("f_cid", this.c); | ||
jSONObject.put("f_time_of_session", elapsedRealtime - this.d); | ||
jSONObject.put("f_event", -5); | ||
jSONObject.put("f_videos_count", 0); | ||
jSONObject.put("f_error", resolveException instanceof ResolveMediaSourceException.ResolveInvalidCodeException ? ((ResolveMediaSourceException.ResolveInvalidCodeException) resolveException).a() : 0); | ||
jSONObject.put("f_body", str); | ||
qu.a("app_lua_tracker", jSONObject.toString()); | ||
} catch (JSONException e) { | ||
att.a(e); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.