@capgo/capacitor-jw-player 8.0.5 → 8.0.7

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.
@@ -22,7 +22,7 @@ import java.util.List;
22
22
  @CapacitorPlugin(name = "JwPlayer")
23
23
  public class JwPlayerPlugin extends Plugin {
24
24
 
25
- private final String pluginVersion = "8.0.5";
25
+ private final String pluginVersion = "8.0.7";
26
26
 
27
27
  private static final String TAG = "JwPlayerPlugin";
28
28
  // Static reference to the plugin instance for activity communication
@@ -16,7 +16,7 @@ protocol CallbackHandler {
16
16
 
17
17
  @objc(JwPlayerPlugin)
18
18
  public class JwPlayerPlugin: CAPPlugin, CAPBridgedPlugin {
19
- private let pluginVersion: String = "8.0.5"
19
+ private let pluginVersion: String = "8.0.7"
20
20
  // public class JwPlayerPlugin: CAPPlugin, CAPBridgedPlugin, GCKLoggerDelegate {
21
21
  public let identifier = "JwPlayerPlugin"
22
22
  public let jsName = "JwPlayer"
@@ -849,10 +849,8 @@ class CustomPlayerViewController: JWPlayerViewController, JWPlayerViewController
849
849
 
850
850
  override func pictureInPictureControllerWillStartPictureInPicture(_ pictureInPictureController: AVPictureInPictureController) {
851
851
  print("[JWPlayer] Delegate: PiP Will Start")
852
- if #available(iOS 14.2, *) {
853
- pictureInPictureController.canStartPictureInPictureAutomaticallyFromInline = true
854
- print("[JWPlayer] Set canStartPictureInPictureAutomaticallyFromInline to true. It's current value: \(pictureInPictureController.canStartPictureInPictureAutomaticallyFromInline)")
855
- }
852
+ pictureInPictureController.canStartPictureInPictureAutomaticallyFromInline = true
853
+ print("[JWPlayer] Set canStartPictureInPictureAutomaticallyFromInline to true. It's current value: \(pictureInPictureController.canStartPictureInPictureAutomaticallyFromInline)")
856
854
  super.pictureInPictureControllerWillStartPictureInPicture(pictureInPictureController)
857
855
  }
858
856
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-jw-player",
3
- "version": "8.0.5",
3
+ "version": "8.0.7",
4
4
  "description": "Playes videos from jwplayer.com",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -38,7 +38,7 @@
38
38
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
39
39
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
40
40
  "eslint": "eslint . --ext ts",
41
- "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
41
+ "prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
42
42
  "swiftlint": "node-swiftlint",
43
43
  "docgen": "docgen --api JwPlayerPlugin --output-readme README.md --output-json dist/docs.json",
44
44
  "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
@@ -63,7 +63,8 @@
63
63
  "rimraf": "^6.1.0",
64
64
  "rollup": "^4.53.2",
65
65
  "swiftlint": "^2.0.0",
66
- "typescript": "^5.9.3"
66
+ "typescript": "^5.9.3",
67
+ "prettier-pretty-check": "^0.2.0"
67
68
  },
68
69
  "peerDependencies": {
69
70
  "@capacitor/core": ">=8.0.0"