Closed Bug 1724751 Opened 3 years ago Closed 3 years ago

Plumb key system to CDM creation

Categories

(Core :: Audio/Video: GMP, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: bryce, Assigned: bryce)

References

Details

Attachments

(2 files)

Let's plumb the key system we're using to CDM when we create it. This is one of the steps we need to take to support a configurable clearkey CDM where we can toggle test features on or off.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1721411#c2 for context.

Right now, GetCDM is only called with aTags containing a key system string. This
patch changes the function args to reflect that. This makes it easier to reason
about the function without having to look up call sites.

This enables us to use CDMs that support multiple key systems. E.g. if we have a
CDM that supports keySystem1 and keySystem2, and it needs to know which key
system we want, this lets us tell it which.

This exact case can be used to let us have a more flexible and configurable
clearkey CDM with differently behaved key systems for specific tests.

Depends on D122136

Pushed by bvandyk@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1744680ee04d
Instead of tags, accept a key system as an argument to GeckoMediaPluginService::GetCDM. r=alwu
https://hg.mozilla.org/integration/autoland/rev/8100f4674794
Plumb key system arg to CDM creation. r=alwu

Thanks. I suspect this is needing the "fake" key system in the assert as well. Will loop back on this once I iron out some WIP.

Pushed by bvandyk@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cabdc91d6c0a
Instead of tags, accept a key system as an argument to GeckoMediaPluginService::GetCDM. r=alwu
https://hg.mozilla.org/integration/autoland/rev/e2a8ba429f03
Plumb key system arg to CDM creation. r=alwu
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
Flags: needinfo?(bvandyk)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: