Teach MCSInfo about decrypt/decrypt+decode support on Android
Categories
(Core :: Audio/Video, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: aosmond, Assigned: aosmond)
References
(Blocks 3 open bugs)
Details
Attachments
(5 external files)
KeySystemConfig::CreateWivineL3KeySystemConfigs is a mess right now where it advertises decrypt only support on Android, whereas we only support decrypt and decode:
https://searchfox.org/firefox-main/rev/bde88e0509310cea9d16d473d94d7d0f48632df2/dom/media/eme/KeySystemConfig.cpp#122
It works because the AndroidDecoderModule accepts the input anyways. It would be nice to consolidate this so that we are consistent between AndroidDecoderModule and FFmpegDecoderModule via ffvpx. Linking in the blocklist would be a nice bonus.
Also, moving this into the parent process at startup / near startup and caching it would solve crashes with isolated processes.
| Assignee | ||
Comment 1•1 month ago
|
||
This will prove useful in a later patch in this series.
| Assignee | ||
Comment 2•1 month ago
|
||
AndroidDecoderModule only needs the decoder info right now, but
when we refactor this into a set of gfxVars, we want to be able to
pull the encoders as well in one Java call.
| Assignee | ||
Comment 3•1 month ago
|
||
This patch makes it so that we advertise what the platform supports
inside a gfxVar. This is not to be confused with that the decoder
and encoder modules on Android will advertise. For example, while
the platform may support Opus/Vorbis/FLAC, we won't generally use
those implementations as we prefer ffvpx. But we do need to know
for the purposes of EME decrypt and decode support, because we will
use what the MediaCodec NDK provides in that specific case.
| Assignee | ||
Comment 4•1 month ago
|
||
This will reduce the amount of caching we need to do in the content,
utility and/or RDD processes.
| Assignee | ||
Comment 5•1 month ago
|
||
This mirrors the work done in AndroidDecoderModule, but removes the
dependencies on Java for EME. This allows EME to work with isolated
processes, as well as makes the reporting accurate. We used to
advertise support for decrypt only, for FLAC/AV1/etc regardless of
what the platform supported. Now it accurately only supports
decrypt and decode for codecs supplied by the MediaCodec NDK.
| Assignee | ||
Updated•1 month ago
|
Comment 7•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9a2965da5906
https://hg.mozilla.org/mozilla-central/rev/9e3c44539fbb
https://hg.mozilla.org/mozilla-central/rev/6696ce640257
https://hg.mozilla.org/mozilla-central/rev/a947c039841e
https://hg.mozilla.org/mozilla-central/rev/b2eec49cebe0
Updated•1 month ago
|
Description
•