@jwplayer/jwplayer-react-native 1.0.1 → 1.0.3

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.
Files changed (58) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.md +10 -0
  2. package/.github/ISSUE_TEMPLATE/feature_request.md +10 -0
  3. package/.github/ISSUE_TEMPLATE/implement.md +9 -0
  4. package/.github/ISSUE_TEMPLATE/question.md +10 -0
  5. package/README.md +2 -0
  6. package/RNJWPlayer.podspec +2 -2
  7. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  8. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  9. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  10. package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
  11. package/android/build.gradle +1 -1
  12. package/android/src/main/AndroidManifest.xml +2 -0
  13. package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerModule.java +510 -458
  14. package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerView.java +384 -32
  15. package/android/src/main/java/com/jwplayer/rnjwplayer/RNJWPlayerViewManager.java +12 -0
  16. package/android/src/main/java/com/jwplayer/rnjwplayer/Util.java +26 -7
  17. package/badges/version.svg +1 -1
  18. package/index.d.ts +41 -7
  19. package/index.js +22 -2
  20. package/ios/RNJWPlayer/RNJWPlayerView.swift +47 -34
  21. package/ios/RNJWPlayer/RNJWPlayerViewController.swift +15 -9
  22. package/ios/RNJWPlayer/RNJWPlayerViewManager.m +9 -1
  23. package/ios/RNJWPlayer/RNJWPlayerViewManager.swift +49 -15
  24. package/jwplayer-jwplayer-react-native-1.0.3.tgz +0 -0
  25. package/package.json +3 -3
  26. package/.idea/modules.xml +0 -8
  27. package/.idea/vcs.xml +0 -6
  28. package/android/.gradle/8.1.1/checksums/checksums.lock +0 -0
  29. package/android/.gradle/8.1.1/checksums/md5-checksums.bin +0 -0
  30. package/android/.gradle/8.1.1/checksums/sha1-checksums.bin +0 -0
  31. package/android/.gradle/8.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  32. package/android/.gradle/8.1.1/fileHashes/fileHashes.lock +0 -0
  33. package/android/.gradle/8.4/checksums/checksums.lock +0 -0
  34. package/android/.gradle/8.4/checksums/md5-checksums.bin +0 -0
  35. package/android/.gradle/8.4/checksums/sha1-checksums.bin +0 -0
  36. package/android/.gradle/8.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  37. package/android/.gradle/8.4/dependencies-accessors/gc.properties +0 -0
  38. package/android/.gradle/8.4/executionHistory/executionHistory.bin +0 -0
  39. package/android/.gradle/8.4/executionHistory/executionHistory.lock +0 -0
  40. package/android/.gradle/8.4/fileChanges/last-build.bin +0 -0
  41. package/android/.gradle/8.4/fileHashes/fileHashes.bin +0 -0
  42. package/android/.gradle/8.4/fileHashes/fileHashes.lock +0 -0
  43. package/android/.gradle/8.4/gc.properties +0 -0
  44. package/android/.gradle/config.properties +0 -2
  45. package/android/.gradle/file-system.probe +0 -0
  46. package/android/.idea/compiler.xml +0 -6
  47. package/android/.idea/gradle.xml +0 -18
  48. package/android/.idea/migrations.xml +0 -10
  49. package/android/.idea/misc.xml +0 -10
  50. package/android/.idea/vcs.xml +0 -6
  51. package/android/local.properties +0 -8
  52. package/ios/RNJWPlayer.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  53. package/ios/RNJWPlayer.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  54. package/ios/RNJWPlayer.xcodeproj/project.xcworkspace/xcuserdata/jmilham.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  55. package/ios/RNJWPlayer.xcodeproj/xcuserdata/jmilham.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  56. /package/android/.gradle/{8.1.1 → 8.9}/dependencies-accessors/gc.properties +0 -0
  57. /package/android/.gradle/{8.1.1 → 8.9}/fileChanges/last-build.bin +0 -0
  58. /package/android/.gradle/{8.1.1 → 8.9}/gc.properties +0 -0
@@ -36,3 +36,13 @@ If you are having a build issue, we would like to know about your machine.
36
36
 
37
37
  **Additional context**
38
38
  Add any other context about the problem here.
39
+
40
+ **JWP Ticketing**
41
+ To expedite resolution and maintain confidentiality, submit a JWP [request](https://support.jwplayer.com/hc/en-us/requests/new) in addition to this new `Issue`. A JWP request offers the following benefits:
42
+ * Associates the `Issue` with your company
43
+ * Permits securely share sensitive information related to the bug, request, or question
44
+ * Enhances JWP's ability to track progress and provide timely updates
45
+ * Enables you to track and manage multiple issues through a single platform
46
+
47
+ | ℹ️ While `Issues` are valuable for open-source collaboration, a JWP request ensures that you will receive clear timelines and efficient support. |
48
+ |:---|
@@ -18,3 +18,13 @@ A clear and concise description of any alternative solutions or features you've
18
18
 
19
19
  **Additional context**
20
20
  Add any other context or screenshots about the feature request here.
21
+
22
+ **JWP Ticketing**
23
+ To expedite resolution and maintain confidentiality, submit a JWP [request](https://support.jwplayer.com/hc/en-us/requests/new) in addition to this new `Issue`. A JWP request offers the following benefits:
24
+ * Associates the `Issue` with your company
25
+ * Permits securely share sensitive information related to the bug, request, or question
26
+ * Enhances JWP's ability to track progress and provide timely updates
27
+ * Enables you to track and manage multiple issues through a single platform
28
+
29
+ | ℹ️ While `Issues` are valuable for open-source collaboration, a JWP request ensures that you will receive clear timelines and efficient support. |
30
+ |:---|
@@ -15,3 +15,12 @@ assignees: '@jwplayer/team_sdks'
15
15
 
16
16
  **Additional context**
17
17
 
18
+ **JWP Ticketing**
19
+ To expedite resolution and maintain confidentiality, submit a JWP [request](https://support.jwplayer.com/hc/en-us/requests/new) in addition to this new `Issue`. A JWP request offers the following benefits:
20
+ * Associates the `Issue` with your company
21
+ * Permits securely share sensitive information related to the bug, request, or question
22
+ * Enhances JWP's ability to track progress and provide timely updates
23
+ * Enables you to track and manage multiple issues through a single platform
24
+
25
+ | ℹ️ While `Issues` are valuable for open-source collaboration, a JWP request ensures that you will receive clear timelines and efficient support. |
26
+ |:---|
@@ -9,3 +9,13 @@ assignees: '@jwplayer/team_sdks'
9
9
 
10
10
  **What isn't clear?**
11
11
  What information are we not providing that you think we should?
12
+
13
+ **JWP Ticketing**
14
+ To expedite resolution and maintain confidentiality, submit a JWP [request](https://support.jwplayer.com/hc/en-us/requests/new) in addition to this new `Issue`. A JWP request offers the following benefits:
15
+ * Associates the `Issue` with your company
16
+ * Permits securely share sensitive information related to the bug, request, or question
17
+ * Enhances JWP's ability to track progress and provide timely updates
18
+ * Enables you to track and manage multiple issues through a single platform
19
+
20
+ | ℹ️ While `Issues` are valuable for open-source collaboration, a JWP request ensures that you will receive clear timelines and efficient support. |
21
+ |:---|
package/README.md CHANGED
@@ -178,6 +178,7 @@ Follow these steps to configure the media playback experience in your app:
178
178
  onPlayerError={event => this.onPlayerError(event)}
179
179
  onBuffer={() => this.onBuffer()}
180
180
  onTime={event => this.onTime(event)}
181
+ onLoaded={event => this.onLoaded(event)}
181
182
  onFullScreen={() => this.onFullScreen()}
182
183
  onFullScreenExit={() => this.onFullScreenExit()}
183
184
  />
@@ -408,6 +409,7 @@ If you use a different provider for DRM or this does not work for your use case,
408
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`.
409
410
  2. (viewOnly:true only) Set the `pipEnabled` prop to `true`.
410
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.
411
413
 
412
414
  <br /><br />
413
415
 
@@ -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', '>= 4.19.0'
15
+ s.dependency 'JWPlayerKit', '4.21.1'
16
16
  s.dependency 'React-Core'
17
17
  s.static_framework = true
18
18
  s.info_plist = {
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
35
35
  end
36
36
  if defined?($RNJWPlayerUseGoogleIMA)
37
37
  Pod::UI.puts "RNJWPlayer: enable IMA SDK"
38
- s.dependency 'GoogleAds-IMA-iOS-SDK', '3.22.0'
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
  }
@@ -1,2 +1,2 @@
1
- #Wed May 22 15:58:05 CEST 2024
2
- gradle.version=8.1.1
1
+ #Tue Aug 06 14:41:55 PDT 2024
2
+ gradle.version=8.9
@@ -66,7 +66,7 @@ allprojects {
66
66
  }
67
67
  }
68
68
 
69
- def jwPlayerVersion = "4.18.0"
69
+ def jwPlayerVersion = "4.18.4"
70
70
  def exoplayerVersion = "2.18.7" // Deprecated. Use Media3 when targeting JW SDK > 4.16.0
71
71
  def media3ExoVersion = "1.1.1"
72
72
 
@@ -9,11 +9,13 @@
9
9
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
10
10
  <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
11
11
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
12
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
12
13
  <!-- READ_MEDIA_IMAGES, READ_MEDIA_VIDEO or READ_MEDIA_AUDIO.-->
13
14
 
14
15
  <application>
15
16
  <service
16
17
  android:name="com.jwplayer.pub.api.background.MediaService"
18
+ android:foregroundServiceType="mediaPlayback"
17
19
  android:exported="false">
18
20
  <intent-filter>
19
21
  <action android:name="android.intent.action.MEDIA_BUTTON" />