Replace OS Version with Widevine Version
(This is a merge of http://go/wvgerrit/13813) Removes the OS Version property which was only ever implemented on Android to appease Netflix and never actually used by them. Adds, instead, a Widevine library version property. Also adds implementations of this function for both Android and CE Devices. For Android, the version number is starting at 3.0.0-android, to reflect that this is the third major revision of the Widevine CDM in Android. For CE Devices, the version number is not changing from its current value (2.2.0) but is gaining a "-ce" on the end in order to differentiate it from the Android version number. Bug: 18376638 Change-Id: Ifb3fa0d62631b45d9e91a6a53bcab3be38763d3a
This commit is contained in:
@@ -25,7 +25,7 @@ std::string kDeviceNameKey = "device_name";
|
||||
std::string kProductNameKey = "product_name";
|
||||
std::string kBuildInfoKey = "build_info";
|
||||
std::string kDeviceIdKey = "device_id";
|
||||
std::string kOsVersionKey = "os_version";
|
||||
std::string kWVCdmVersionKey = "widevine_cdm_version";
|
||||
const unsigned char kServiceCertificateCAPublicKey[] = {
|
||||
0x30, 0x82, 0x01, 0x8a, 0x02, 0x82, 0x01, 0x81, 0x00, 0xb4, 0xfe, 0x39,
|
||||
0xc3, 0x65, 0x90, 0x03, 0xdb, 0x3c, 0x11, 0x97, 0x09, 0xe8, 0x68, 0xcd,
|
||||
@@ -261,9 +261,9 @@ bool CdmLicense::PrepareKeyRequest(const InitializationData& init_data,
|
||||
client_info->set_name(kDeviceIdKey);
|
||||
client_info->set_value(value);
|
||||
}
|
||||
if (Properties::GetOsVersion(&value)) {
|
||||
if (Properties::GetWVCdmVersion(&value)) {
|
||||
client_info = client_id->add_client_info();
|
||||
client_info->set_name(kOsVersionKey);
|
||||
client_info->set_name(kWVCdmVersionKey);
|
||||
client_info->set_value(value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user