@jwplayer/jwplayer-react-native 1.0.2 → 1.1.0
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.
- package/README.md +1 -0
- package/RNJWPlayer.podspec +3 -3
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/build.gradle +8 -1
- package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerModule.java +368 -471
- package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerView.java +226 -56
- package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerViewManager.java +15 -1
- package/android/src/main/java/com/jwplayer/rnjwplayer/Util.java +65 -9
- package/badges/version.svg +1 -1
- package/index.d.ts +47 -8
- package/index.js +51 -2
- package/ios/RNJWPlayer/RNJWPlayerView.swift +96 -34
- package/ios/RNJWPlayer/RNJWPlayerViewController.swift +15 -9
- package/ios/RNJWPlayer/RNJWPlayerViewManager.m +8 -1
- package/ios/RNJWPlayer/RNJWPlayerViewManager.swift +244 -166
- package/jwplayer-jwplayer-react-native-v1.1.0.tgz +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -409,6 +409,7 @@ If you use a different provider for DRM or this does not work for your use case,
|
|
|
409
409
|
1. Read and understand the requirements for PiP in the [iOS SDK](https://docs.jwplayer.com/players/docs/ios-invoke-picture-in-picture-playback). PiP mode is enabled by JWP for the `PlayerViewController`.
|
|
410
410
|
2. (viewOnly:true only) Set the `pipEnabled` prop to `true`.
|
|
411
411
|
3. (viewOnly:true only) Call `togglePIP()` to enable or disable PiP.
|
|
412
|
+
4. Ensure [category](/docs//legacy_readme.md#audiosessioncategory) and/or [categoryOptions](/docs//legacy_readme.md#audiosessioncategoryoptions) prop(s) are set to define and configure your media. This is required to setup the audio session. If `category` is not defined but `pipEnabled` is set true, we default to the standard `playback` category to avoid crashing.
|
|
412
413
|
|
|
413
414
|
<br /><br />
|
|
414
415
|
|
package/RNJWPlayer.podspec
CHANGED
|
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.platform = :ios, "14.0"
|
|
13
13
|
s.source = { :git => "https://github.com/jwplayer/jwplayer-react-native.git", :tag => "v#{s.version}" }
|
|
14
14
|
s.source_files = "ios/RNJWPlayer/*.{h,m,swift}"
|
|
15
|
-
s.dependency 'JWPlayerKit', '
|
|
15
|
+
s.dependency 'JWPlayerKit', '4.21.2'
|
|
16
16
|
s.dependency 'React-Core'
|
|
17
17
|
s.static_framework = true
|
|
18
18
|
s.info_plist = {
|
|
@@ -28,14 +28,14 @@ Pod::Spec.new do |s|
|
|
|
28
28
|
|
|
29
29
|
if defined?($RNJWPlayerUseGoogleCast)
|
|
30
30
|
Pod::UI.puts "RNJWPlayer: enable Google Cast"
|
|
31
|
-
s.dependency 'google-cast-sdk', '
|
|
31
|
+
s.dependency 'google-cast-sdk', '4.8.1'
|
|
32
32
|
s.pod_target_xcconfig = {
|
|
33
33
|
'OTHER_SWIFT_FLAGS' => '$(inherited) -D USE_GOOGLE_CAST'
|
|
34
34
|
}
|
|
35
35
|
end
|
|
36
36
|
if defined?($RNJWPlayerUseGoogleIMA)
|
|
37
37
|
Pod::UI.puts "RNJWPlayer: enable IMA SDK"
|
|
38
|
-
s.dependency 'GoogleAds-IMA-iOS-SDK', '
|
|
38
|
+
s.dependency 'GoogleAds-IMA-iOS-SDK', '3.22.1'
|
|
39
39
|
s.pod_target_xcconfig = {
|
|
40
40
|
'OTHER_SWIFT_FLAGS' => '$(inherited) -D USE_GOOGLE_IMA'
|
|
41
41
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Mon Mar 03 15:18:01 PST 2025
|
|
2
2
|
gradle.version=8.9
|
package/android/build.gradle
CHANGED
|
@@ -15,6 +15,10 @@ def safeExtGet(prop, fallback) {
|
|
|
15
15
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
def isNewArchitectureEnabled() {
|
|
19
|
+
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
def useIMA = safeExtGet("RNJWPlayerUseGoogleIMA", "")?.toBoolean() ?: false
|
|
19
23
|
def useCast = safeExtGet("RNJWPlayerUseGoogleCast", "")?.toBoolean() ?: false
|
|
20
24
|
|
|
@@ -27,6 +31,9 @@ android {
|
|
|
27
31
|
targetSdkVersion safeExtGet('targetSdkVersion', 28)
|
|
28
32
|
versionCode 1
|
|
29
33
|
versionName "1.0"
|
|
34
|
+
|
|
35
|
+
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
36
|
+
|
|
30
37
|
ndk {
|
|
31
38
|
abiFilters "armeabi-v7a", "x86"
|
|
32
39
|
}
|
|
@@ -66,7 +73,7 @@ allprojects {
|
|
|
66
73
|
}
|
|
67
74
|
}
|
|
68
75
|
|
|
69
|
-
def jwPlayerVersion = "4.18.
|
|
76
|
+
def jwPlayerVersion = "4.18.4"
|
|
70
77
|
def exoplayerVersion = "2.18.7" // Deprecated. Use Media3 when targeting JW SDK > 4.16.0
|
|
71
78
|
def media3ExoVersion = "1.1.1"
|
|
72
79
|
|