@capgo/capacitor-video-player 8.0.7 → 8.0.9

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.
@@ -38,7 +38,7 @@ import java.util.Map;
38
38
  )
39
39
  public class VideoPlayerPlugin extends Plugin {
40
40
 
41
- private final String pluginVersion = "8.0.7";
41
+ private final String pluginVersion = "8.0.9";
42
42
 
43
43
  // Permission alias constants
44
44
  private static final String PERMISSION_DENIED_ERROR = "Unable to access media videos, user denied permission request";
@@ -884,12 +884,8 @@ public class VideoPlayerPlugin extends Plugin {
884
884
  }
885
885
 
886
886
  public boolean isDeviceTV(Context context) {
887
- //Since Android TV is only API 21+ that is the only time we will compare configurations
888
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
889
- UiModeManager uiManager = (UiModeManager) context.getSystemService(Context.UI_MODE_SERVICE);
890
- return uiManager != null && uiManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION;
891
- }
892
- return false;
887
+ UiModeManager uiManager = (UiModeManager) context.getSystemService(Context.UI_MODE_SERVICE);
888
+ return uiManager != null && uiManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_TELEVISION;
893
889
  }
894
890
 
895
891
  private void _initPlayer(PluginCall call) {
@@ -8,7 +8,7 @@ import AVKit
8
8
  */
9
9
  @objc(VideoPlayerPlugin)
10
10
  public class VideoPlayerPlugin: CAPPlugin, CAPBridgedPlugin {
11
- private let pluginVersion: String = "8.0.7"
11
+ private let pluginVersion: String = "8.0.9"
12
12
  public let identifier = "VideoPlayerPlugin"
13
13
  public let jsName = "VideoPlayer"
14
14
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-video-player",
3
- "version": "8.0.7",
3
+ "version": "8.0.9",
4
4
  "description": "Capacitor plugin to play video in native player",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",