react-native-theoplayer 1.7.0 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,12 @@
1
1
  buildscript {
2
- if (project == rootProject) {
3
- repositories {
4
- google()
5
- mavenCentral()
6
- }
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ }
7
6
 
8
- dependencies {
9
- classpath 'com.android.tools.build:gradle:4.2.2'
10
- classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'
11
- }
7
+ dependencies {
8
+ classpath 'com.android.tools.build:gradle:4.2.2'
9
+ classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'
12
10
  }
13
11
  }
14
12
 
@@ -56,6 +56,10 @@ class ContentProtectionModule(private val context: ReactApplicationContext) :
56
56
  fun registerContentProtectionIntegration(integrationId: String, keySystemIdStr: String) {
57
57
  val keySystemId = KeySystemAdapter.fromString(keySystemIdStr)
58
58
  if (keySystemId != null) {
59
+ // We only support Widevine currently.
60
+ if (keySystemId != KeySystemId.WIDEVINE) {
61
+ return
62
+ }
59
63
  handler.post {
60
64
  val factory = ProxyContentProtectionIntegrationFactory(integrationId, keySystemId, this)
61
65
  THEOplayerGlobal.getSharedInstance(context.applicationContext)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-theoplayer",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "A THEOplayer video component for react-native.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",