Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(MCap): Fix the default DRM session type w/ MCap
When there is no session type specified by a manifest parser or the app's DRM config, we select a session type based on context (offline or streaming). In the EME branches of DrmEngine, we select the ultimate session type in the engine's DrmInfo based on the configuration that was sent to EME. This, in turn, influences what kinds of sessions we create later. However, in the MediaCapabilities branch of DrmEngine, we were defaulting to 'temporary' sessions in the engine's DrmInfo, without regard to the input config or the load context. This fixes the default so that it mirrors the input config to MCap. That MCap config is not accessible at that time, so we just re-derive the same value based on a boolean stored in DrmEngine. In cases where there is a session type from the manifest parser (rare) or the app's DRM config (more common), that will be preferred regardless of context. Change-Id: I1f408c04eff9a3006d2eddfaf748f7ab2c93cf9b
- Loading branch information