mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Changing for loop.
This commit is contained in:
parent
cfd13ce6d9
commit
c659fe9441
1 changed files with 4 additions and 4 deletions
|
|
@ -432,10 +432,10 @@ public class DashManifestParser extends DefaultHandler
|
|||
// In case of clear key, update the licence server url of
|
||||
// previously parsed common encryption drmSchemeData.
|
||||
if (drmSchemeType != null && drmSchemeType == "clearkey") {
|
||||
for (int i = 0;i<drmSchemeDatas.size();i++) {
|
||||
if (drmSchemeDatas.get(i).uuid == C.COMMON_PSSH_UUID
|
||||
&& drmSchemeDatas.get(i).licenseServerUrl == null)
|
||||
drmSchemeDatas.get(i).licenseServerUrl = contentProtection.second.licenseServerUrl;
|
||||
for (SchemeData drmSchemeData : drmSchemeDatas) {
|
||||
if (drmSchemeData.uuid == C.COMMON_PSSH_UUID
|
||||
&& drmSchemeData.licenseServerUrl == null)
|
||||
drmSchemeData.licenseServerUrl = contentProtection.second.licenseServerUrl;
|
||||
}
|
||||
}
|
||||
drmSchemeDatas.add(contentProtection.second);
|
||||
|
|
|
|||
Loading…
Reference in a new issue