Fix for b/4198446 HC - Support for Widevine Adaptive VOD

Fix for b/4075745 libWVStreamControlAPI crashes when dlopened() and dlclosed()
Added error logging to diagnose problems such as b/4430078 Playback of newly rented
    movie fails with "license expired"

Includes Widevine library build Version 4.5.0.3682

Change-Id: I5708bb3fb92f05a3dd1768620157a795ccebd57a
This commit is contained in:
Jeffrey Tinker
2011-05-21 18:06:12 -07:00
parent 907dd75e31
commit 07b60098b3
9 changed files with 140 additions and 22 deletions

View File

@@ -52,10 +52,9 @@ public class ConfigXMLParser {
Element asset = assetlist.getChild("asset");
asset.setEndElementListener(new EndElementListener() {
public void end() {
if (currentAssetDescriptor.getUri().indexOf("http") != -1
&& (currentAssetDescriptor.getUri().indexOf(".wvm") != -1
|| !currentAssetDescriptor.getUri().substring(currentAssetDescriptor
.getUri().lastIndexOf("/")).contains("."))) {
if (currentAssetDescriptor.getUri().indexOf(".wvm") != -1
|| !currentAssetDescriptor.getUri().substring(currentAssetDescriptor
.getUri().lastIndexOf("/")).contains(".")) {
assetDescriptors.add(currentAssetDescriptor.copy());
}
}

View File

@@ -83,12 +83,13 @@ public class HttpParser extends Thread {
String assetPath = null;
String title = null;
String imagePath = null;
start = htmlText.indexOf(":", start);
start = htmlText.indexOf("href=\"", start);
if (start == -1) {
break;
} else {
start += "href=\"".length();
end = htmlText.indexOf("\"", start);
assetPath = "http" + htmlText.substring(start, end);
assetPath = htmlText.substring(start, end);
start = end + 1;
start = htmlText.indexOf("\"", start) + 1;
end = htmlText.indexOf("\"", start);