Skip to content

Commit

Permalink
chore(Demo): Fix "Custom DRM System" field when set to known drm syst…
Browse files Browse the repository at this point in the history
…em (#7843)

Related to #7546
  • Loading branch information
avelad authored Jan 8, 2025
1 parent fb8086b commit 5a62db7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions demo/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,12 +442,9 @@ shakaDemo.Custom = class {
// Make the drm system field.
const drmSetup = (input, container) => {
customDrmSystemInput = input;
const drmSystems = assetInProgress.licenseServers.keys();
for (const drmSystem of drmSystems) {
if (!shakaDemo.Main.commonDrmSystems.includes(drmSystem)) {
input.value = drmSystem;
break;
}
if (assetInProgress.licenseServers.size == 1) {
const drmSystems = assetInProgress.licenseServers.keys();
input.value = Array.from(drmSystems)[0];
}
};
const drmOnChange = (input) => {
Expand Down

0 comments on commit 5a62db7

Please sign in to comment.