This commit is contained in:
Armands Malejevs 2022-03-30 14:49:40 +03:00
parent 142521bc0e
commit cca2744542

View File

@ -524,7 +524,7 @@ class ReactExoplayerView extends FrameLayout implements
@Override
public void run() {
// DRM initialization must run on a different thread
DRMSessionManager drmSessionManager = initializePlayerDrm(self);
DrmSessionManager drmSessionManager = initializePlayerDrm(self);
if (drmSessionManager == null) {
// Failed to intialize DRM session manager - cannot continue
return;
@ -646,6 +646,10 @@ class ReactExoplayerView extends FrameLayout implements
startBufferCheckTimer();
}
private DrmSessionManager buildDrmSessionManager(UUID uuid, String licenseUrl, String[] keyRequestPropertiesArray) throws UnsupportedDrmException {
return buildDrmSessionManager(uuid, licenseUrl, keyRequestPropertiesArray, 0);
}
private DrmSessionManager buildDrmSessionManager(UUID uuid, String licenseUrl, String[] keyRequestPropertiesArray, int retryCount) throws UnsupportedDrmException {
if (Util.SDK_INT < 18) {
return null;