Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(DRM): broken keySystemsMapping due to multiple references of drmI…
…nfo (#5388) Different streams may share `drmInfo` references, which makes problem when `keySystemsMapping` config is used. Assuming we have config: ```js drm: { servers: { 'a.b.c': '...', }, keySystemsMapping: { 'a.b.c': 'd.e.f', }, } ``` on the first access to the `drmInfo` object `DrmEngine` will set server for `a.b.c` key system and replace key system to `d.e.f`. On the 2nd access DrmEngine will not find server config for `d.e.f` and thus will remove any server set. This issue can be easily mitigated by deduplicating `drmInfo` array.
- Loading branch information