QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 VideoRateQualityService.java 源代码,内容仅作参考
package com.tencent.ilivesdk.qualityreportservice;
import android.text.TextUtils;
import android.util.Log;
import com.huawei.hms.framework.common.ContainerUtils;
import com.tencent.connect.common.Constants;
import com.tencent.falco.base.libapi.http.HttpInterface;
import com.tencent.falco.base.libapi.http.HttpResponse;
import com.tencent.ilivesdk.qualityreportservice_interface.QualityReportServiceAdapter;
import com.tencent.ilivesdk.qualityreportservice_interface.VideoRateQualityInterface;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONObject;
public class VideoRateQualityService implements VideoRateQualityInterface {
private QualityReportServiceAdapter f13237a;
private HttpInterface f13238b;
public VideoRateQualityService(QualityReportServiceAdapter qualityReportServiceAdapter) {
this.f13237a = qualityReportServiceAdapter;
QualityReportServiceAdapter qualityReportServiceAdapter2 = this.f13237a;
if (qualityReportServiceAdapter2 != null) {
this.f13238b = qualityReportServiceAdapter2.b();
}
}
private void a(String str) {
if (this.f13238b == null || TextUtils.isEmpty(str)) {
return;
}
Log.d("VideoRateQualityService", "send " + str);
this.f13238b.a(str, new HttpResponse() {
@Override
public void a(int i, JSONObject jSONObject) {
Log.d("VideoRateQualityService", "onResponse code " + i);
}
});
}
private void a(Map<String, String> map) {
a(b(map));
}
private String b(Map<String, String> map) {
StringBuilder sb = new StringBuilder("https://h.trace.qq.com/kv?attaid=04a00034451&token=5388276298");
sb.append(ContainerUtils.FIELD_DELIMITER);
sb.append("_dc=");
sb.append(Math.random());
for (Map.Entry<String, String> entry : map.entrySet()) {
sb.append(ContainerUtils.FIELD_DELIMITER);
sb.append(entry.getKey());
sb.append(ContainerUtils.KEY_VALUE_DELIMITER);
sb.append(entry.getValue());
}
String sb2 = sb.toString();
Log.d("VideoRateQualityService", "url=" + sb2);
return sb2;
}
private Map<String, String> l(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_room_id", "" + j);
hashMap.put("s_anchor_uid", "" + j2);
hashMap.put("s_uid", "" + j3);
return hashMap;
}
@Override
public void a(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_act_type", "1");
hashMap.put("act_desc", "anchorCaton");
hashMap.putAll(l(j, j2, j3));
a(hashMap);
}
@Override
public void b(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_act_type", "2");
hashMap.put("act_desc", "anchorStartNetDetect");
hashMap.putAll(l(j, j2, j3));
a(hashMap);
}
@Override
public void c(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_act_type", "3");
hashMap.put("act_desc", "anchorNetDetectHigher");
hashMap.putAll(l(j, j2, j3));
a(hashMap);
}
@Override
public void d(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_act_type", "5");
hashMap.put("act_desc", "anchorNetDetectLower");
hashMap.putAll(l(j, j2, j3));
a(hashMap);
}
@Override
public void e(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_act_type", Constants.VIA_SHARE_TYPE_INFO);
hashMap.put("act_desc", "anchorSwitchLevel");
hashMap.putAll(l(j, j2, j3));
a(hashMap);
}
@Override
public void f(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_act_type", "8");
hashMap.put("act_desc", "anchorAutoSwitchHigh");
hashMap.putAll(l(j, j2, j3));
a(hashMap);
}
@Override
public void g(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_act_type", Constants.VIA_SHARE_TYPE_MINI_PROGRAM);
hashMap.put("act_desc", "audCaton");
hashMap.putAll(l(j, j2, j3));
a(hashMap);
}
@Override
public void h(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_act_type", "10");
hashMap.put("act_desc", "audStartNetDetect");
hashMap.putAll(l(j, j2, j3));
a(hashMap);
}
@Override
public void i(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_act_type", "11");
hashMap.put("act_desc", "audNetDetectHigher");
hashMap.putAll(l(j, j2, j3));
a(hashMap);
}
@Override
public void j(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_act_type", Constants.VIA_REPORT_TYPE_JOININ_GROUP);
hashMap.put("act_desc", "audNetDetectLower");
hashMap.putAll(l(j, j2, j3));
a(hashMap);
}
@Override
public void k(long j, long j2, long j3) {
HashMap hashMap = new HashMap();
hashMap.put("s_act_type", Constants.VIA_REPORT_TYPE_MAKE_FRIEND);
hashMap.put("act_desc", "audSwitchLevel");
hashMap.putAll(l(j, j2, j3));
a(hashMap);
}
}