Merge changes I5271f961,I8a75d2e1 into sc-widevine-release
* changes: Added debugOtaKeyboxFallbackDuration property. Update fallback policy for fast fallback.
This commit is contained in:
committed by
Android (Google) Code Review
commit
bc62a6f3fe
@@ -1470,6 +1470,19 @@ Return<Status> WVDrmPlugin::setPropertyString(const hidl_string& propertyName,
|
||||
ALOGE("App requested unknown ATSC mode %s", _value.c_str());
|
||||
return Status::BAD_VALUE;
|
||||
}
|
||||
} else if (name == "debugOtaKeyboxFallbackDuration") {
|
||||
bool success = false;
|
||||
if (value == "default") {
|
||||
success = mCDM->SetDefaultOtaKeyboxFallbackDurationRules();
|
||||
} else if (value == "fast") {
|
||||
success = mCDM->SetFastOtaKeyboxFallbackDurationRules();
|
||||
} else {
|
||||
ALOGE("Unknown OTA fallback duration value %s", _value.c_str());
|
||||
return Status::BAD_VALUE;
|
||||
}
|
||||
if (!success) {
|
||||
return Status::ERROR_DRM_UNKNOWN;
|
||||
}
|
||||
} else {
|
||||
ALOGE("App set unknown string property %s", name.c_str());
|
||||
return Status::ERROR_DRM_CANNOT_HANDLE;
|
||||
|
||||
Reference in New Issue
Block a user