中建乐购 v3.2.3版本的 MD5 值为:3856d0da11f056931d64951d23a4b3b8
以下内容为反编译后的 SmoothStreamingTestMediaDrmCallback.java 源代码,内容仅作参考
package tv.danmaku.ijk.media.exo.demo;
import android.annotation.TargetApi;
import android.text.TextUtils;
import com.google.android.exoplayer.drm.d;
import com.google.android.exoplayer.drm.g;
import com.google.android.exoplayer.util.x;
import java.io.IOException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.apache.http.protocol.HTTP;
@TargetApi(18)
public class SmoothStreamingTestMediaDrmCallback implements g {
private static final Map<String, String> KEY_REQUEST_PROPERTIES;
private static final String PLAYREADY_TEST_DEFAULT_URI = "http://playready.directtaps.net/pr/svc/rightsmanager.asmx";
private static final Map<String, String> PROVISIONING_REQUEST_PROPERTIES = Collections.singletonMap(HTTP.CONTENT_TYPE, "application/octet-stream");
static {
HashMap hashMap = new HashMap();
hashMap.put(HTTP.CONTENT_TYPE, "text/xml");
hashMap.put("SOAPAction", "http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense");
KEY_REQUEST_PROPERTIES = hashMap;
}
@Override
public byte[] executeProvisionRequest(UUID uuid, d.c cVar) throws IOException {
return x.a(cVar.b() + "&signedRequest=" + new String(cVar.a()), (byte[]) null, PROVISIONING_REQUEST_PROPERTIES);
}
@Override
public byte[] executeKeyRequest(UUID uuid, d.a aVar) throws Exception {
String b2 = aVar.b();
if (TextUtils.isEmpty(b2)) {
b2 = PLAYREADY_TEST_DEFAULT_URI;
}
return x.a(b2, aVar.a(), KEY_REQUEST_PROPERTIES);
}
}