Skip to content

Commit 9f18a40

Browse files
authored
Merge branch 'develop' into bugfix/ios-missing-drm-integrationParameters
2 parents d295e18 + b88435d commit 9f18a40

File tree

6 files changed

+14781
-14738
lines changed

6 files changed

+14781
-14738
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
### Fixed
1111

12-
- Fixed an issue on iOS where the integrationParameters from the contentProtection section of the source were not processed correctly, resulting failures for DRM connectors that depend on these.
12+
- Fixed an issue on iOS where the integrationParameters from the contentProtection section of the source were not processed correctly, resulting in failures for DRM connectors that depend on them.
13+
14+
## [10.7.1] - 26-01-06
15+
16+
### Added
17+
18+
- Added a `multiSession` property to `DRMConfiguration` to enable multi-key content on Android platforms.
1319

1420
## [10.7.0] - 25-12-19
1521

android/src/main/java/com/theoplayer/drm/ContentProtectionAdapter.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const val PROP_LICENSE_TYPE_TEMPORARY: String = "temporary"
4444
const val PROP_LICENSE_TYPE_PERSISTENT: String = "persistent"
4545
const val PROP_QUERY_PARAMETERS: String = "queryParameters"
4646
const val PROP_CERTIFICATE: String = "certificate"
47+
const val PROP_MULTISESSION: String = "multiSession"
4748
const val PROP_KEYS: String = "keys"
4849
const val PROP_ID: String = "id"
4950
const val PROP_VALUE: String = "value"
@@ -104,6 +105,9 @@ object ContentProtectionAdapter {
104105
if (jsonConfig.has(PROP_INTEGRATION_PARAMETERS)) {
105106
integrationParameters(fromJSONObjectToMap(jsonConfig.getJSONObject(PROP_INTEGRATION_PARAMETERS)))
106107
}
108+
if (jsonConfig.has(PROP_MULTISESSION)) {
109+
multiSession(jsonConfig.getBoolean(PROP_MULTISESSION))
110+
}
107111
queryParameters(fromJSONObjectToMap(jsonConfig.optJSONObject(PROP_QUERY_PARAMETERS)))
108112
}.build()
109113
}

0 commit comments

Comments
 (0)